mmc: rockchip_sdhci: Add support for RK3576

Add support for RK3576 to the rockchip sdhci driver.

It's pretty similar to its cousins found in the RK3568 and RK3588 and the
specific hs400-tx-tap number was taken from the vendor-u-boot.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Heiko Stuebner
2025-04-15 23:51:22 +02:00
committed by Simon Glass
parent e3172fd794
commit 5bbef56bb5

View File

@@ -682,6 +682,17 @@ static const struct sdhci_data rk3568_data = {
.ddr50_strbin_delay_num = DLL_STRBIN_DELAY_NUM_DEFAULT,
};
static const struct sdhci_data rk3576_data = {
.set_ios_post = rk3568_sdhci_set_ios_post,
.set_clock = rk3568_sdhci_set_clock,
.config_dll = rk3568_sdhci_config_dll,
.hs200_txclk_tapnum = DLL_TXCLK_TAPNUM_DEFAULT,
.hs400_txclk_tapnum = 0x7,
.hs400_cmdout_tapnum = 0x7,
.hs400_strbin_tapnum = 0x5,
.ddr50_strbin_delay_num = 0xa,
};
static const struct sdhci_data rk3588_data = {
.set_ios_post = rk3568_sdhci_set_ios_post,
.set_clock = rk3568_sdhci_set_clock,
@@ -706,6 +717,10 @@ static const struct udevice_id sdhci_ids[] = {
.compatible = "rockchip,rk3568-dwcmshc",
.data = (ulong)&rk3568_data,
},
{
.compatible = "rockchip,rk3576-dwcmshc",
.data = (ulong)&rk3576_data,
},
{
.compatible = "rockchip,rk3588-dwcmshc",
.data = (ulong)&rk3588_data,