1# STM32 Quad SPI flash driver configuration options
2
3# Copyright (c) 2020 Piotr Mienkowski
4# Copyright (c) 2020 Linaro Limited
5# SPDX-License-Identifier: Apache-2.0
6
7DT_STM32_QUADSPI_HAS_DMA := $(dt_nodelabel_has_prop,quadspi,dmas)
8
9config FLASH_STM32_QSPI
10	bool "STM32 Quad SPI Flash driver"
11	default y
12	depends on DT_HAS_ST_STM32_QSPI_NOR_ENABLED
13	select USE_STM32_HAL_QSPI
14	select USE_STM32_HAL_MDMA if SOC_SERIES_STM32H7X
15	select FLASH_HAS_DRIVER_ENABLED
16	select FLASH_JESD216
17	select FLASH_PAGE_LAYOUT
18	select FLASH_HAS_PAGE_LAYOUT
19	select DMA if $(DT_STM32_QUADSPI_HAS_DMA)
20	select USE_STM32_HAL_DMA if $(DT_STM32_QUADSPI_HAS_DMA)
21	help
22	  Enable QSPI-NOR support on the STM32 family of processors.
23