diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2010-07-26 18:34:28 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-07-26 18:34:28 -0400 |
commit | 6405616754f70a11c5410b321495fcd61e70b240 (patch) | |
tree | 97c0b4e0ab00e753f7e5fa444091b28dc5ce1e4a /arch/arm/mach-omap2 | |
parent | fb2fc9204f8ce060d239ab41f09cf6fc6de5ad4b (diff) |
OMAP24xx: CM: fix mask used for checking IDLEST status
On OMAP24xx, the polarity for the IDLEST bits is opposite of OMAP3.
The mask used to check this was using the bit position instead of the
bit mask.
This patch fixes the problem by using the bit mask instead of the bit
field.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/cm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/cm.c b/arch/arm/mach-omap2/cm.c index 2d83565d2be2..721c3b66740a 100644 --- a/arch/arm/mach-omap2/cm.c +++ b/arch/arm/mach-omap2/cm.c | |||
@@ -50,15 +50,15 @@ int omap2_cm_wait_module_ready(s16 prcm_mod, u8 idlest_id, u8 idlest_shift) | |||
50 | 50 | ||
51 | cm_idlest_reg = cm_idlest_offs[idlest_id - 1]; | 51 | cm_idlest_reg = cm_idlest_offs[idlest_id - 1]; |
52 | 52 | ||
53 | mask = 1 << idlest_shift; | ||
54 | |||
53 | if (cpu_is_omap24xx()) | 55 | if (cpu_is_omap24xx()) |
54 | ena = idlest_shift; | 56 | ena = mask; |
55 | else if (cpu_is_omap34xx()) | 57 | else if (cpu_is_omap34xx()) |
56 | ena = 0; | 58 | ena = 0; |
57 | else | 59 | else |
58 | BUG(); | 60 | BUG(); |
59 | 61 | ||
60 | mask = 1 << idlest_shift; | ||
61 | |||
62 | /* XXX should be OMAP2 CM */ | 62 | /* XXX should be OMAP2 CM */ |
63 | omap_test_timeout(((cm_read_mod_reg(prcm_mod, cm_idlest_reg) & mask) == ena), | 63 | omap_test_timeout(((cm_read_mod_reg(prcm_mod, cm_idlest_reg) & mask) == ena), |
64 | MAX_MODULE_READY_TIME, i); | 64 | MAX_MODULE_READY_TIME, i); |