Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146847
b: refs/heads/master
c: 1823f6d
h: refs/heads/master
i:
  146845: 44a9638
  146843: 615773a
  146839: c0c0a14
  146831: 397b70c
  146815: fa0857f
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Jun 1, 2009
1 parent 2091124 commit d51be14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 63d12e23235d982d8f55696e09b2ff91e3ba0042
refs/heads/master: 1823f6d5e6b81cca6542ed2e5f30d2556aad0f67
12 changes: 6 additions & 6 deletions trunk/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/cpufreq.h>
#include <asm/clock.h>
#include <asm/freq.h>
#include <cpu/sh7785.h>

static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18,
24, 32, 36, 48 };
Expand Down Expand Up @@ -80,12 +81,11 @@ static struct clk_ops frqmr_clk_ops = {

static unsigned long pll_recalc(struct clk *clk)
{
/*
* XXX: PLL1 multiplier is locked for the default clock mode,
* when mode pin detection and configuration support is added,
* select the multiplier dynamically.
*/
return clk->parent->rate * 36;
int multiplier;

multiplier = test_mode_pin(MODE_PIN_MODE4) ? 36 : 72;

return clk->parent->rate * multiplier;
}

static struct clk_ops pll_clk_ops = {
Expand Down

0 comments on commit d51be14

Please sign in to comment.