]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: rockchip: rk3328: Handle usb480m phy clock
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 6 Jun 2023 17:09:17 +0000 (22:39 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 31 Jul 2023 12:33:18 +0000 (20:33 +0800)
Handle USB480M clock ID in set_rate() and set_parent()
to allow the dt assigned-clocks and assigned-clock-parents
work on rk3328.dtsi

Cc: Lukasz Majewski <lukma@denx.de>
Cc: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/clk/rockchip/clk_rk3328.c

index 969b7a8581e597c87528d3a15a84455ab0af511d..ef97381f0edea5ff0e78586ad0ddaa53179ace16 100644 (file)
@@ -681,6 +681,7 @@ static ulong rk3328_clk_set_rate(struct clk *clk, ulong rate)
        case ACLK_GMAC:
        case PCLK_GMAC:
        case SCLK_USB3OTG_SUSPEND:
+       case USB480M:
                return 0;
        default:
                return -ENOENT;
@@ -771,6 +772,7 @@ static int rk3328_clk_set_parent(struct clk *clk, struct clk *parent)
        case SCLK_MAC2IO_EXT:
                return rk3328_gmac2io_ext_set_parent(clk, parent);
        case DCLK_LCDC:
+       case USB480M:
        case SCLK_PDM:
        case SCLK_RTC32K:
        case SCLK_UART0: