mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 06:45:19 +00:00
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:
parent
084400f200
commit
ab92c23c6e
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue