2021-01-12 09:33:02 +01:00
|
|
|
# STM32 Quad SPI flash driver configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2020 Piotr Mienkowski
|
|
|
|
# Copyright (c) 2020 Linaro Limited
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2025-02-03 11:25:51 +01:00
|
|
|
DT_STM32_QUADSPI_HAS_DMA := $(dt_compat_any_has_prop,$(DT_COMPAT_ST_STM32_QSPI),dmas)
|
2021-01-12 09:33:02 +01:00
|
|
|
|
2025-06-04 10:52:29 +02:00
|
|
|
menuconfig FLASH_STM32_QSPI
|
2021-01-12 09:33:02 +01:00
|
|
|
bool "STM32 Quad SPI Flash driver"
|
2022-07-22 01:53:16 -05:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ST_STM32_QSPI_NOR_ENABLED
|
2021-01-12 09:33:02 +01:00
|
|
|
select USE_STM32_HAL_QSPI
|
2021-12-02 16:08:25 +01:00
|
|
|
select USE_STM32_HAL_MDMA if SOC_SERIES_STM32H7X
|
2021-01-12 09:33:02 +01:00
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
|
|
select FLASH_JESD216
|
|
|
|
select FLASH_HAS_PAGE_LAYOUT
|
2024-02-02 13:46:29 +00:00
|
|
|
select FLASH_HAS_EXPLICIT_ERASE
|
2024-08-29 16:04:49 +02:00
|
|
|
select PINCTRL
|
2021-01-07 10:21:47 +01:00
|
|
|
select DMA if $(DT_STM32_QUADSPI_HAS_DMA)
|
|
|
|
select USE_STM32_HAL_DMA if $(DT_STM32_QUADSPI_HAS_DMA)
|
2021-01-12 09:33:02 +01:00
|
|
|
help
|
|
|
|
Enable QSPI-NOR support on the STM32 family of processors.
|
2025-06-04 10:52:29 +02:00
|
|
|
|
|
|
|
if FLASH_STM32_QSPI
|
|
|
|
|
|
|
|
config FLASH_STM32_QSPI_GENERIC_READ
|
|
|
|
bool "Generic read command extended operation"
|
|
|
|
select FLASH_HAS_EX_OP
|
|
|
|
help
|
|
|
|
Enables flash extended operation that can be used to transmit
|
|
|
|
a custom command and read the result to a user-provided buffer.
|
|
|
|
|
|
|
|
config FLASH_STM32_QSPI_GENERIC_WRITE
|
|
|
|
bool "Generic write command extended operation"
|
|
|
|
select FLASH_HAS_EX_OP
|
|
|
|
help
|
|
|
|
Enables flash extended operation that can be used to transmit
|
|
|
|
a custom command and write data taken from a user-provided
|
|
|
|
buffer.
|
|
|
|
|
|
|
|
endif # FLASH_STM32_QSPI
|