From: Kever Yang Date: Fri, 12 Aug 2016 09:57:05 +0000 (+0800) Subject: clk: rk3288: add PWM clock get rate X-Git-Tag: v2016.11-rc1~109^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4f0b8efa50a543efd407fb8b2e9ad0de49467a15;p=u-boot clk: rk3288: add PWM clock get rate This patch add clk_get_rate for PWM device. Signed-off-by: Kever Yang Acked-by: Simon Glass --- diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index c07203d84b..bd71a96927 100644 --- a/drivers/clk/rockchip/clk_rk3288.c +++ b/drivers/clk/rockchip/clk_rk3288.c @@ -695,6 +695,8 @@ static ulong rk3288_clk_get_rate(struct clk *clk) case PCLK_I2C4: case PCLK_I2C5: return gclk_rate; + case PCLK_PWM: + return PD_BUS_PCLK_HZ; default: return -ENOENT; }