diff options
author | Rajendra Nayak <rnayak@ti.com> | 2009-11-16 08:36:53 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-11-17 17:14:10 -0500 |
commit | 9346f48b26a4b48a7d56314bbb94e6b801e28316 (patch) | |
tree | 4e7347ed8dd886bee6e15706e733515178e29401 /arch | |
parent | f7343deb0f6e7654c60e97606aea388b9da612c2 (diff) |
omap3: clock: Fix the DPLL freqsel computations
Fix the freqsel value computation. Use n instead of (n+1)
The formula in the TRM uses a zero-based N, hence the (n+1); however
at this point in the clock34xx.c code, N is one-based.
Hayati Bayrakdar <h-bayrakdar@ti.com> and Nishanth Menon <nm@ti.com> helped
track down this bug.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
[paul@pwsan.com: modified commit message]
Cc: Hayati Bayrakdar <h-bayrakdar@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/clock34xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index 489556eecbd1..7c5c00df3c70 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c | |||
@@ -473,7 +473,7 @@ static u16 _omap3_dpll_compute_freqsel(struct clk *clk, u8 n) | |||
473 | unsigned long fint; | 473 | unsigned long fint; |
474 | u16 f = 0; | 474 | u16 f = 0; |
475 | 475 | ||
476 | fint = clk->dpll_data->clk_ref->rate / (n + 1); | 476 | fint = clk->dpll_data->clk_ref->rate / n; |
477 | 477 | ||
478 | pr_debug("clock: fint is %lu\n", fint); | 478 | pr_debug("clock: fint is %lu\n", fint); |
479 | 479 | ||