Skip to content

Commit

Permalink
arch/arm64/imx9: Clear edma4 mux conf before set
Browse files Browse the repository at this point in the history
Warm boot might fail if edma4 channel mux is
not written to default value

Signed-off-by: Jouni Ukkonen <[email protected]>
  • Loading branch information
Jouni Ukkonen committed Nov 4, 2024
1 parent 41be91d commit f50087e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm64/src/imx9/imx9_edma.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,13 @@ DMACH_HANDLE imx9_dmach_alloc(uint16_t dmamux, uint8_t dchpri)

putreg32(EDMA_CH_INT, base + IMX9_EDMA_CH_INT_OFFSET);

/* Set reset value first to CH MUX */

if (imx9_edma_tcdhasmux(dmach->base))
{

Check failure on line 982 in arch/arm64/src/imx9/imx9_edma.c

View workflow job for this annotation

GitHub Actions / check

Bad left brace alignment
putreg8(0, base + IMX9_EDMA_CH_MUX_OFFSET);
}

Check failure on line 984 in arch/arm64/src/imx9/imx9_edma.c

View workflow job for this annotation

GitHub Actions / check

Bad right brace alignment

/* Set the DMAMUX source */

if (imx9_edma_tcdhasmux(dmach->base))
Expand Down

0 comments on commit f50087e

Please sign in to comment.