omap3: clock: Fix the DPLL freqsel computations
authorRajendra Nayak <rnayak@ti.com>
Mon, 16 Nov 2009 13:36:53 +0000 (13:36 +0000)
committerTony Lindgren <tony@atomide.com>
Tue, 17 Nov 2009 22:14:10 +0000 (14:14 -0800)
commit9346f48b26a4b48a7d56314bbb94e6b801e28316
tree4e7347ed8dd886bee6e15706e733515178e29401
parentf7343deb0f6e7654c60e97606aea388b9da612c2
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>
arch/arm/mach-omap2/clock34xx.c