projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ee3686
)
clk: rockchip: add pll_wait_lock for pll_enable
author
Elaine Zhang
<zhangqing@rock-chips.com>
Tue, 21 Feb 2017 08:50:51 +0000
(16:50 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Wed, 22 Feb 2017 06:23:34 +0000
(14:23 +0800)
if pll is power down,when power up pll need wait pll lock.
Change-Id: I2e795a682a0c9712b41e00ddf054065dde4a5c7c
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
drivers/clk/rockchip/clk-pll.c
patch
|
blob
|
history
diff --git
a/drivers/clk/rockchip/clk-pll.c
b/drivers/clk/rockchip/clk-pll.c
index 6188a6cc13d2284a5a50d1787f5c979da4321938..2643341ae869616496ef4a8af5da8139ef711d89 100644
(file)
--- a/
drivers/clk/rockchip/clk-pll.c
+++ b/
drivers/clk/rockchip/clk-pll.c
@@
-475,6
+475,7
@@
static int rockchip_rk3036_pll_enable(struct clk_hw *hw)
writel(HIWORD_UPDATE(0, RK3036_PLLCON1_PWRDOWN, 0),
pll->reg_base + RK3036_PLLCON(1));
+ rockchip_pll_wait_lock(pll);
return 0;
}
@@
-720,6
+721,7
@@
static int rockchip_rk3066_pll_enable(struct clk_hw *hw)
writel(HIWORD_UPDATE(0, RK3066_PLLCON3_PWRDOWN, 0),
pll->reg_base + RK3066_PLLCON(3));
+ rockchip_pll_wait_lock(pll);
return 0;
}
@@
-1132,6
+1134,7
@@
static int rockchip_rk3399_pll_enable(struct clk_hw *hw)
writel(HIWORD_UPDATE(0, RK3399_PLLCON3_PWRDOWN, 0),
pll->reg_base + RK3399_PLLCON(3));
+ rockchip_rk3399_pll_wait_lock(pll);
return 0;
}