mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
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:
committed by
Xiang Xiao
parent
1d23baaa63
commit
6b38b83331
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user