drivers: flash: octospi drivers for stm32h7 serie

With the introduction of the OSPI NOR flash controller
the stm32H7 serie requires the HAL MDMA in anycase.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2022-05-09 13:53:44 +02:00 committed by Carles Cufí
parent 08a9c295fa
commit b165f10795
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ config FLASH_STM32_OSPI
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_OSPI_NOR))
select USE_STM32_HAL_OSPI
select USE_STM32_LL_DLYB if SOC_SERIES_STM32U5X
select USE_STM32_HAL_MDMA if SOC_SERIES_STM32H7X
select FLASH_HAS_DRIVER_ENABLED
select FLASH_JESD216
select FLASH_PAGE_LAYOUT

View File

@ -1052,6 +1052,7 @@ static void flash_stm32_ospi_isr(const struct device *dev)
HAL_OSPI_IRQHandler(&dev_data->hospi);
}
#if !defined(CONFIG_SOC_SERIES_STM32H7X)
/* weak function required for HAL compilation */
__weak HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
{
@ -1063,7 +1064,7 @@ __weak HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
{
return HAL_OK;
}
#endif /* !CONFIG_SOC_SERIES_STM32H7X */
/*
* Transfer Error callback.
*/