summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Stuebner <[email protected]>2025-04-15 23:51:22 +0200
committerKever Yang <[email protected]>2025-04-23 22:12:05 +0800
commit0384ee988d47878c626fb077defa83e0b97f57f0 (patch)
treea1687d3a49dc062e145e0a398d53e3d56c89c2ca
parenta252b5bed58043a0bf3a6ce861870da72a946d70 (diff)
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 <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]> Reviewed-by: Jonas Karlman <[email protected]> Reviewed-by: Kever Yang <[email protected]>
-rw-r--r--drivers/mmc/rockchip_sdhci.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c
index c0f98678436..761e3619329 100644
--- a/drivers/mmc/rockchip_sdhci.c
+++ b/drivers/mmc/rockchip_sdhci.c
@@ -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,
@@ -707,6 +718,10 @@ static const struct udevice_id sdhci_ids[] = {
.data = (ulong)&rk3568_data,
},
{
+ .compatible = "rockchip,rk3576-dwcmshc",
+ .data = (ulong)&rk3576_data,
+ },
+ {
.compatible = "rockchip,rk3588-dwcmshc",
.data = (ulong)&rk3588_data,
},