2021-01-12 16:33:02 +08:00
|
|
|
# STM32 Quad SPI flash driver configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2020 Piotr Mienkowski
|
|
|
|
# Copyright (c) 2020 Linaro Limited
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
DT_COMPAT_ST_STM32_QSPI_NOR := st,stm32-qspi-nor
|
2022-03-09 00:44:04 +08:00
|
|
|
DT_STM32_QUADSPI_HAS_DMA := $(dt_nodelabel_has_prop,quadspi,dmas)
|
2021-01-12 16:33:02 +08:00
|
|
|
|
|
|
|
config FLASH_STM32_QSPI
|
|
|
|
bool "STM32 Quad SPI Flash driver"
|
|
|
|
depends on SOC_FAMILY_STM32
|
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_QSPI_NOR))
|
|
|
|
select USE_STM32_HAL_QSPI
|
2021-12-02 23:08:25 +08:00
|
|
|
select USE_STM32_HAL_MDMA if SOC_SERIES_STM32H7X
|
2021-01-12 16:33:02 +08:00
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
|
|
select FLASH_JESD216
|
|
|
|
select FLASH_PAGE_LAYOUT
|
|
|
|
select FLASH_HAS_PAGE_LAYOUT
|
2021-01-07 17:21:47 +08:00
|
|
|
select DMA if $(DT_STM32_QUADSPI_HAS_DMA)
|
|
|
|
select USE_STM32_HAL_DMA if $(DT_STM32_QUADSPI_HAS_DMA)
|
2021-01-12 16:33:02 +08:00
|
|
|
help
|
|
|
|
Enable QSPI-NOR support on the STM32 family of processors.
|