This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 6b38b83331 arch/arm64/imx9: Clear DMA channel interrupts on init 6b38b83331 is described below commit 6b38b83331190b82cb8fcd976f5c034209c4d175 Author: Jouni Ukkonen <jouni.ukko...@unikie.com> AuthorDate: Tue Nov 26 13:13:25 2024 +0200 arch/arm64/imx9: Clear DMA channel interrupts on init Avoid spurious interrupts on reboot Signed-off-by: Jouni Ukkonen <jouni.ukko...@unikie.com> --- arch/arm64/src/imx9/imx9_edma.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/src/imx9/imx9_edma.c b/arch/arm64/src/imx9/imx9_edma.c index 3c3110d4fe..ec611da583 100644 --- a/arch/arm64/src/imx9/imx9_edma.c +++ b/arch/arm64/src/imx9/imx9_edma.c @@ -864,6 +864,10 @@ void weak_function arm64_dma_initialize(void) putreg32(0, IMX9_EDMA_TCD(base, chan) + IMX9_EDMA_CH_CSR_OFFSET); + /* Clear interrupt if any */ + + putreg32(1, IMX9_EDMA_TCD(base, chan) + IMX9_EDMA_CH_INT_OFFSET); + /* Set all TCD CSR, biter and citer entries to 0 so that * will be 0 when DONE is not set so that imx9_dmach_getcount * reports 0.