Skip to content

Commit

Permalink
lib: dma: add entries for imx95's EDMA2 and HOST_DMA
Browse files Browse the repository at this point in the history
Add entries for imx95's EDMA2 and HOST_DMA.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
  • Loading branch information
LaurentiuM1234 authored and dbaluta committed Oct 4, 2024
1 parent a65f19e commit 46ffc15
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions zephyr/lib/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 46ffc15

Please sign in to comment.