diff --git a/arch/arm64/src/imx9/imx9_edma.c b/arch/arm64/src/imx9/imx9_edma.c index b5fe2f3ea257c..97a5c1fabbedd 100644 --- a/arch/arm64/src/imx9/imx9_edma.c +++ b/arch/arm64/src/imx9/imx9_edma.c @@ -976,6 +976,13 @@ DMACH_HANDLE imx9_dmach_alloc(uint16_t dmamux, uint8_t dchpri) putreg32(EDMA_CH_INT, base + IMX9_EDMA_CH_INT_OFFSET); + /* Set reset value first to CH MUX */ + + if (imx9_edma_tcdhasmux(dmach->base)) + { + putreg8(0, base + IMX9_EDMA_CH_MUX_OFFSET); + } + /* Set the DMAMUX source */ if (imx9_edma_tcdhasmux(dmach->base))