From 46ffc159f9c264e67750da26701968278ce45953 Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Wed, 25 Sep 2024 12:24:19 +0300 Subject: [PATCH] lib: dma: add entries for imx95's EDMA2 and HOST_DMA Add entries for imx95's EDMA2 and HOST_DMA. Signed-off-by: Laurentiu Mihalcea --- zephyr/lib/dma.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/zephyr/lib/dma.c b/zephyr/lib/dma.c index 9a641128da69..4d734026f322 100644 --- a/zephyr/lib/dma.c +++ b/zephyr/lib/dma.c @@ -170,6 +170,26 @@ SHARED_DATA struct dma dma[] = { .z_dev = DEVICE_DT_GET(DT_NODELABEL(host_dma)), }, #endif /* CONFIG_SOC_MIMX8UD7_ADSP */ +#ifdef CONFIG_SOC_MIMX9596_M7 +{ + .plat_data = { + .dir = DMA_DIR_MEM_TO_DEV | DMA_DIR_DEV_TO_MEM, + .devs = DMA_DEV_SAI, + .channels = 64, + .period_count = 2, + }, + .z_dev = DEVICE_DT_GET(DT_NODELABEL(edma2)), +}, +{ + .plat_data = { + .dir = DMA_DIR_HMEM_TO_LMEM | DMA_DIR_LMEM_TO_HMEM, + .devs = DMA_DEV_HOST, + .channels = DT_PROP(DT_NODELABEL(host_dma), dma_channels), + .period_count = 2, + }, + .z_dev = DEVICE_DT_GET(DT_NODELABEL(host_dma)), +}, +#endif /* CONFIG_SOC_MIMX9596_M7 */ }; const struct dma_info lib_dma = {