2021-10-27 19:20:55 +08:00
|
|
|
# STM32 Octo SPI flash driver configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2022 STMicroelectronics
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-05-06 15:10:47 +08:00
|
|
|
DT_STM32_OCTOSPI_1_HAS_DMA := $(dt_nodelabel_has_prop,octospi1,dmas)
|
|
|
|
DT_STM32_OCTOSPI_2_HAS_DMA := $(dt_nodelabel_has_prop,octospi2,dmas)
|
|
|
|
|
2021-10-27 19:20:55 +08:00
|
|
|
config FLASH_STM32_OSPI
|
|
|
|
bool "STM32 Octo SPI Flash driver"
|
2022-07-22 14:53:16 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ST_STM32_OSPI_NOR_ENABLED
|
2022-12-21 00:03:57 +08:00
|
|
|
select USE_STM32_HAL_OSPI if !SOC_SERIES_STM32H5X
|
|
|
|
select USE_STM32_HAL_XSPI if SOC_SERIES_STM32H5X
|
|
|
|
select USE_STM32_LL_DLYB if (SOC_SERIES_STM32H5X || SOC_SERIES_STM32U5X)
|
2022-05-09 19:53:44 +08:00
|
|
|
select USE_STM32_HAL_MDMA if SOC_SERIES_STM32H7X
|
2021-10-27 19:20:55 +08:00
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
|
|
select FLASH_JESD216
|
|
|
|
select FLASH_HAS_PAGE_LAYOUT
|
2024-02-02 21:46:29 +08:00
|
|
|
select FLASH_HAS_EXPLICIT_ERASE
|
2024-08-29 22:04:49 +08:00
|
|
|
select PINCTRL
|
2022-05-06 15:10:47 +08:00
|
|
|
select DMA if $(DT_STM32_OCTOSPI_1_HAS_DMA) || $(DT_STM32_OCTOSPI_2_HAS_DMA)
|
|
|
|
select USE_STM32_HAL_DMA if $(DT_STM32_OCTOSPI_1_HAS_DMA) || \
|
|
|
|
$(DT_STM32_OCTOSPI_2_HAS_DMA)
|
2022-05-05 21:12:55 +08:00
|
|
|
select USE_STM32_HAL_DMA_EX if SOC_SERIES_STM32U5X && \
|
|
|
|
($(DT_STM32_OCTOSPI_1_HAS_DMA) || \
|
|
|
|
$(DT_STM32_OCTOSPI_2_HAS_DMA))
|
2021-10-27 19:20:55 +08:00
|
|
|
help
|
|
|
|
Enable OSPI-NOR support on the STM32 family of processors.
|