]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: rockchip: rk3308: Add dummy support for USB480M clock
authorJonas Karlman <jonas@kwiboo.se>
Mon, 8 Apr 2024 18:14:05 +0000 (18:14 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 26 Apr 2024 07:47:03 +0000 (15:47 +0800)
Add dummy support for setting parent of USB480M clock.

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

index 7515fc8bb24466ce6d3175aed9ebb370663dbe44..c46b58e31626e34569423fb3afe454d908636605 100644 (file)
@@ -1085,6 +1085,8 @@ static ulong rk3308_clk_set_rate(struct clk *clk, ulong rate)
        case SCLK_RTC32K:
                ret = rk3308_rtc32k_set_clk(priv, clk->id, rate);
                break;
+       case USB480M:
+               return 0;
        default:
                return -ENOENT;
        }
@@ -1117,6 +1119,8 @@ static int __maybe_unused rk3308_clk_set_parent(struct clk *clk, struct clk *par
        switch (clk->id) {
        case SCLK_MAC:
                return rk3308_mac_set_parent(clk, parent);
+       case USB480M:
+               return 0;
        default:
                break;
        }