Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232381
b: refs/heads/master
c: 71fc509
h: refs/heads/master
i:
  232379: ea9c90e
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Jan 20, 2011
1 parent 53efdc8 commit 5e8247c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2150dace47258722c67f297509bc6171e7b486ad
refs/heads/master: 71fc5099ed50d3699ba003042a721a0bf105369d
10 changes: 9 additions & 1 deletion trunk/arch/arm/mach-shmobile/clock-sh73a0.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,16 @@ static unsigned long pll_recalc(struct clk *clk)
{
unsigned long mult = 1;

if (__raw_readl(PLLECR) & (1 << clk->enable_bit))
if (__raw_readl(PLLECR) & (1 << clk->enable_bit)) {
mult = (((__raw_readl(clk->enable_reg) >> 24) & 0x3f) + 1);
/* handle CFG bit for PLL1 and PLL2 */
switch (clk->enable_bit) {
case 1:
case 2:
if (__raw_readl(clk->enable_reg) & (1 << 20))
mult *= 2;
}
}

return clk->parent->rate * mult;
}
Expand Down

0 comments on commit 5e8247c

Please sign in to comment.