]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: sdhci: Add HS400 Enhanced Strobe support for RK3399
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>
Tue, 15 Mar 2022 17:46:27 +0000 (20:46 +0300)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 16 Mar 2022 09:10:30 +0000 (18:10 +0900)
commitc35af783172563f6a8b55d45ba244cb2d2f09cce
treece6fb925389c23278184072ed06c5990565d8e50
parent2a1d7c635fdede97a05d16067a936bba0a37f908
rockchip: sdhci: Add HS400 Enhanced Strobe support for RK3399

On RK3399, a register bit must be set to enable Enhanced Strobe.
Let the Rockchip SDHCI driver set it when Enhanced Strobe configuration
is requested. However, having it set makes the lower-speed modes stop
working and makes reinitialization fail, so let it be unset as needed in
set_control_reg().

This is mostly ported from Linux's Arasan SDHCI driver which happens
to be the underlying IP. (drivers/mmc/host/sdhci-of-arasan.c in Linux
tree).

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/mmc/rockchip_sdhci.c