]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: rockchip: rk3588: Add limited TMCLK_EMMC clock support
authorJonas Karlman <jonas@kwiboo.se>
Tue, 18 Apr 2023 16:46:42 +0000 (16:46 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:55:29 +0000 (15:55 +0800)
The device tree sdhci node reference the TMCLK_EMMC clock, add limited
support this clock to rk3588 cru driver. Fixes probe of sdhci driver.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/clk/rockchip/clk_rk3588.c

index 41e31b61a55bc54c8961f0e0804e6f1c0854115c..d0cc19b47883b5688d9223783b0cbb48162bfcea 100644 (file)
@@ -1553,6 +1553,7 @@ static ulong rk3588_clk_get_rate(struct clk *clk)
        case DCLK_DECOM:
                rate = rk3588_mmc_get_clk(priv, clk->id);
                break;
+       case TMCLK_EMMC:
        case TCLK_WDT0:
                rate = OSC_HZ;
                break;
@@ -1702,6 +1703,7 @@ static ulong rk3588_clk_set_rate(struct clk *clk, ulong rate)
        case DCLK_DECOM:
                ret = rk3588_mmc_set_clk(priv, clk->id, rate);
                break;
+       case TMCLK_EMMC:
        case TCLK_WDT0:
                ret = OSC_HZ;
                break;