]> git.baikalelectronics.ru Git - uboot.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)
commita79e80eb6b87618311ddfb8250446d772871c365
treece6fb925389c23278184072ed06c5990565d8e50
parentfeaa65b0f7ea13b477803114dd042d95213764df
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