clk: rockchip: Add adaptive frequency scaling for pll_rk3036

Change-Id: Ifd035967afc1852df81daa2b15afea764c5b851d
Signed-off-by: Liang Chen <cl@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
This commit is contained in:
Liang Chen
2018-02-25 17:28:51 +08:00
committed by Tao Huang
parent b8daed0133
commit 0a3b4eb464

View File

@@ -376,6 +376,9 @@ static unsigned long rockchip_rk3036_pll_recalc_rate(struct clk_hw *hw,
struct rockchip_pll_rate_table cur;
u64 rate64 = prate;
if (pll->sel && pll->scaling)
return pll->scaling;
rockchip_rk3036_pll_get_params(pll, &cur);
rate64 *= cur.fbdiv;