drivers: flash: stm32 octospi NOR flash with DMA on stm32u5x

This commit set the stm32 octospi drivers for the stm32u5x
when DMA (GPDMA) is transferring.
Valid for octospi1 or octospi2.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2022-05-05 15:12:55 +02:00 committed by Fabio Baltieri
commit e24c5256ba
2 changed files with 72 additions and 14 deletions

View file

@ -20,5 +20,8 @@ config FLASH_STM32_OSPI
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)
select USE_STM32_HAL_DMA_EX if SOC_SERIES_STM32U5X && \
($(DT_STM32_OCTOSPI_1_HAS_DMA) || \
$(DT_STM32_OCTOSPI_2_HAS_DMA))
help
Enable OSPI-NOR support on the STM32 family of processors.