]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: sdhci: Allow disabling of SDMA in SPL
authorPeter Geis <pgwipeout@gmail.com>
Tue, 18 Apr 2023 16:46:44 +0000 (16:46 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:55:29 +0000 (15:55 +0800)
commit3cd664dc92ca832506f1a4e7769cb5ee6a88137d
treea1bcd1940af0d64880393aac323b503277288a79
parentbdbfd589745f1a7042144a222fa1e741066cc839
mmc: sdhci: Allow disabling of SDMA in SPL

Rockchip emmc devices have a similar issue to Rockchip dwmmc devices,
where performing DMA to SRAM later causes issues with suspend/resume.

Allow us to toggle SDMA in SPL for sdhci similar to ADMA support, so we
can ensure DMA is not used when loading the SRAM code.

Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
[jonas@kwiboo.se: add Kconfig default value and fix ADMA typo]
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
drivers/mmc/Kconfig
drivers/mmc/sdhci.c