arch/arm64/imx9: Clear DMA channel interrupts on init

Avoid spurious interrupts on reboot

Signed-off-by: Jouni Ukkonen <jouni.ukkonen@unikie.com>
This commit is contained in:
Jouni Ukkonen
2024-11-26 13:13:25 +02:00
committed by Xiang Xiao
parent 1d23baaa63
commit 6b38b83331
+4
View File
@@ -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.