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:
c536c36
)
rk3188: fix ddr pll do not update status
author
chenxing
<chenxing@rock-chips.com>
Fri, 12 Jul 2013 07:47:26 +0000
(15:47 +0800)
committer
chenxing
<chenxing@rock-chips.com>
Fri, 12 Jul 2013 07:48:36 +0000
(15:48 +0800)
arch/arm/mach-rk3188/clock_data.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk3188/clock_data.c
b/arch/arm/mach-rk3188/clock_data.c
index 2f010a80bc5612c88f8ebb280467826b8bb3368a..4a959ab9b22bd41ffc5c1720f9cd7e11537d047d 100755
(executable)
--- a/
arch/arm/mach-rk3188/clock_data.c
+++ b/
arch/arm/mach-rk3188/clock_data.c
@@
-1361,7
+1361,9
@@
static unsigned long ddr_clk_recalc_rate(struct clk *clk)
u32 shift = get_cru_bits(clk->clksel_con, clk->div_mask, clk->div_shift);
unsigned long rate = 0;
clk->parent = clk->get_parent(clk);
- rate = clk->parent->recalc(clk->parent) >> shift;
+ clk->parent->rate = clk->parent->recalc(clk->parent);
+ rate = clk->parent->rate >> shift;
+
CLKDATA_DBG("%s new clock rate is %lu (shift %u), parent=%s, rate=%lu\n",
clk->name, rate, shift, clk->parent->name, clk->parent->rate);
return rate;