Closed swatikumari1-eaton closed 2 years ago
Moving to "enhancement" as DMA has not yet been ported on STM32MP1.
as a first WA I could suggest you to try to adapt the dma_stm32.c driver like for the stm32H7 family:
diff --git a/drivers/dma/dma_stm32.c b/drivers/dma/dma_stm32.c
index 6f716c8c14..ecb52bdebf 100644
--- a/drivers/dma/dma_stm32.c
+++ b/drivers/dma/dma_stm32.c
@@ -449,7 +449,7 @@ DMA_STM32_EXPORT_API int dma_stm32_configure(const struct device *dev,
DMA_InitStruct.PeriphBurst = stm32_dma_get_pburst(config,
stream->source_periph);
-#if !defined(CONFIG_SOC_SERIES_STM32H7X)
+#if !defined(CONFIG_SOC_SERIES_STM32H7X) && !defined(CONFIG_SOC_SERIES_STM32MP1X)
if (config->channel_direction != MEMORY_TO_MEMORY) {
if (config->dma_slot >= 8) {
LOG_ERR("dma slot error.");
@@ -595,7 +595,8 @@ DMA_STM32_EXPORT_API int dma_stm32_stop(const struct device *dev, uint32_t id)
return -EINVAL;
}
-#if !defined(CONFIG_DMAMUX_STM32) || defined(CONFIG_SOC_SERIES_STM32H7X)
+#if !defined(CONFIG_DMAMUX_STM32) \
+ || defined(CONFIG_SOC_SERIES_STM32H7X) || defined(CONFIG_SOC_SERIES_STM32MP1X)
LL_DMA_DisableIT_TC(dma, dma_stm32_id_to_stream(id));
#endif /* CONFIG_DMAMUX_STM32 */
In addition to the DTS for enabling the DMA in MP1 serie
@swatikumari1-eaton Feedback would be appreciated
I am trying to enable CONFIG_SPI_STM32_DMA macro in my config file but I am getting below error.
Impact Build failed
Environment (please complete the following information):