diff options
Diffstat (limited to 'arch/arm/mach-omap2/clock.c')
-rw-r--r-- | arch/arm/mach-omap2/clock.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 986c9f582752..76afb7b4482c 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c | |||
@@ -228,14 +228,12 @@ static void omap2_clk_wait_ready(struct clk *clk) | |||
228 | * it and pull it into struct clk itself somehow. | 228 | * it and pull it into struct clk itself somehow. |
229 | */ | 229 | */ |
230 | reg = clk->enable_reg; | 230 | reg = clk->enable_reg; |
231 | if ((((u32)reg & 0xff) >= CM_FCLKEN1) && | 231 | |
232 | (((u32)reg & 0xff) <= OMAP24XX_CM_FCLKEN2)) | 232 | /* |
233 | other_reg = (void __iomem *)(((u32)reg & ~0xf0) | 0x10); /* CM_ICLKEN* */ | 233 | * Convert CM_ICLKEN* <-> CM_FCLKEN*. This conversion assumes |
234 | else if ((((u32)reg & 0xff) >= CM_ICLKEN1) && | 234 | * it's just a matter of XORing the bits. |
235 | (((u32)reg & 0xff) <= OMAP24XX_CM_ICLKEN4)) | 235 | */ |
236 | other_reg = (void __iomem *)(((u32)reg & ~0xf0) | 0x00); /* CM_FCLKEN* */ | 236 | other_reg = (void __iomem *)((u32)reg ^ (CM_FCLKEN ^ CM_ICLKEN)); |
237 | else | ||
238 | return; | ||
239 | 237 | ||
240 | /* Check if both functional and interface clocks | 238 | /* Check if both functional and interface clocks |
241 | * are running. */ | 239 | * are running. */ |