mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00: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:
parent
1d23baaa63
commit
6b38b83331
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue