Skip to content

Commit

Permalink
arch/arm64/imx9: Clear DMA channel interrupts on init
Browse files Browse the repository at this point in the history
Avoid spurious interrupts on reboot

Signed-off-by: Jouni Ukkonen <[email protected]>
  • Loading branch information
joukkone committed Nov 27, 2024
1 parent 6c63585 commit d48f2da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm64/src/imx9/imx9_edma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d48f2da

Please sign in to comment.