arch/arm64/src/imx9/imx9_usdhc.c: Fix imx9 usdhc DMA initialization

USDHC_PROCTL selects whether the usdhc uses SDMA or ADMA. This driver
only uses the SDMA or no DMA at all, so select that option. There might be a
wrong register value left by ROM code or an earlier bootloader which uses
ADMA.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
This commit is contained in:
Jukka Laitinen 2026-08-03 14:40:55 +03:00 • committed by Xiang Xiao
parent 084400f200
commit ab92c23c6e

View file

@ -1477,6 +1477,11 @@ static void imx9_reset(struct sdio_dev_s *dev)
mcinfo("Reset complete\n");
/* Set PROCTL to select SDMA or no DMA. */
modifyreg32(priv->addr + IMX9_USDHC_PROCTL_OFFSET,
USDHC_PROCTL_DMAS_MASK, USDHC_PROCTL_DMAS_NODMA);
/* Make sure that all clocking is disabled */
imx9_clock(dev, CLOCK_SDIO_DISABLED);