]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: rockchip: clk_rk3288: add PCLK_RKPWM
authorJohan Jonker <jbx6244@gmail.com>
Wed, 15 Mar 2023 18:34:13 +0000 (19:34 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:16:01 +0000 (15:16 +0800)
The rk3288 pwm nodes synced from Linux make use of PCLK_RKPWM
instead of PCLK_PWM. They have the same pclk_cpu parent,
so add PCLK_RKPWM to rk3288_clk_get_rate().

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org> # chromebook-jerry
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/clk/rockchip/clk_rk3288.c

index 3b29992c3e59385039f903d151c1883cec457853..ef744c06f3e1ebbcf7a707eaf09a7a71f7b65286 100644 (file)
@@ -778,6 +778,7 @@ static ulong rk3288_clk_get_rate(struct clk *clk)
        case PCLK_I2C5:
                return gclk_rate;
        case PCLK_PWM:
+       case PCLK_RKPWM:
                return PD_BUS_PCLK_HZ;
        case SCLK_SARADC:
                new_rate = rockchip_saradc_get_clk(priv->cru);