diff options
author | Paul Walmsley <paul@pwsan.com> | 2009-01-28 14:08:17 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-08 12:50:33 -0500 |
commit | c1bd7aaf678a7e35086520e284d5b44bc69b6599 (patch) | |
tree | 39295cebafbda2904c2a23e8035240e6e365aab2 /arch/arm/mach-omap2/clock34xx.c | |
parent | b8168d1e3989bc141da6bba87ad49e218ff04658 (diff) |
[ARM] OMAP3 clock: convert dpll_data.idlest_bit to idlest_mask
Convert struct dpll_data.idlest_bit field to idlest_mask. Needed since
OMAP2 uses two bits for DPLL IDLEST rather than one.
While here, add the missing idlest_* fields for DPLL3.
linux-omap source commits are 25bab0f176b0a97be18a1b38153f266c3a155784
and b0f7fd17db2aaf8e6e9a2732ae3f4de0874db01c.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/clock34xx.c')
-rw-r--r-- | arch/arm/mach-omap2/clock34xx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index fdfc7d582913..aad77e0d43c7 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c | |||
@@ -314,14 +314,12 @@ static int _omap3_wait_dpll_status(struct clk *clk, u8 state) | |||
314 | const struct dpll_data *dd; | 314 | const struct dpll_data *dd; |
315 | int i = 0; | 315 | int i = 0; |
316 | int ret = -EINVAL; | 316 | int ret = -EINVAL; |
317 | u32 idlest_mask; | ||
318 | 317 | ||
319 | dd = clk->dpll_data; | 318 | dd = clk->dpll_data; |
320 | 319 | ||
321 | state <<= dd->idlest_bit; | 320 | state <<= __ffs(dd->idlest_mask); |
322 | idlest_mask = 1 << dd->idlest_bit; | ||
323 | 321 | ||
324 | while (((__raw_readl(dd->idlest_reg) & idlest_mask) != state) && | 322 | while (((__raw_readl(dd->idlest_reg) & dd->idlest_mask) != state) && |
325 | i < MAX_DPLL_WAIT_TRIES) { | 323 | i < MAX_DPLL_WAIT_TRIES) { |
326 | i++; | 324 | i++; |
327 | udelay(1); | 325 | udelay(1); |