diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/clock.c | 18 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock.h | 1 |
2 files changed, 12 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 23b5f050c8a9..5a0cac93d9ec 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c | |||
@@ -305,13 +305,7 @@ void omap2_clk_dflt_find_idlest(struct clk_hw_omap *clk, | |||
305 | * 34xx reverses this, just to keep us on our toes | 305 | * 34xx reverses this, just to keep us on our toes |
306 | * AM35xx uses both, depending on the module. | 306 | * AM35xx uses both, depending on the module. |
307 | */ | 307 | */ |
308 | if (cpu_is_omap24xx()) | 308 | *idlest_val = ti_clk_features.cm_idlest_val; |
309 | *idlest_val = OMAP24XX_CM_IDLEST_VAL; | ||
310 | else if (cpu_is_omap34xx()) | ||
311 | *idlest_val = OMAP34XX_CM_IDLEST_VAL; | ||
312 | else | ||
313 | BUG(); | ||
314 | |||
315 | } | 309 | } |
316 | 310 | ||
317 | /** | 311 | /** |
@@ -788,4 +782,14 @@ void __init ti_clk_init_features(void) | |||
788 | /* Jitter correction only available on OMAP343X */ | 782 | /* Jitter correction only available on OMAP343X */ |
789 | if (cpu_is_omap343x()) | 783 | if (cpu_is_omap343x()) |
790 | ti_clk_features.flags |= TI_CLK_DPLL_HAS_FREQSEL; | 784 | ti_clk_features.flags |= TI_CLK_DPLL_HAS_FREQSEL; |
785 | |||
786 | /* Idlest value for interface clocks. | ||
787 | * 24xx uses 0 to indicate not ready, and 1 to indicate ready. | ||
788 | * 34xx reverses this, just to keep us on our toes | ||
789 | * AM35xx uses both, depending on the module. | ||
790 | */ | ||
791 | if (cpu_is_omap24xx()) | ||
792 | ti_clk_features.cm_idlest_val = OMAP24XX_CM_IDLEST_VAL; | ||
793 | else if (cpu_is_omap34xx()) | ||
794 | ti_clk_features.cm_idlest_val = OMAP34XX_CM_IDLEST_VAL; | ||
791 | } | 795 | } |
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index d3ef147b32a1..0f100dc4e97f 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h | |||
@@ -233,6 +233,7 @@ struct ti_clk_features { | |||
233 | long fint_band1_max; | 233 | long fint_band1_max; |
234 | long fint_band2_min; | 234 | long fint_band2_min; |
235 | u8 dpll_bypass_vals; | 235 | u8 dpll_bypass_vals; |
236 | u8 cm_idlest_val; | ||
236 | }; | 237 | }; |
237 | 238 | ||
238 | #define TI_CLK_DPLL_HAS_FREQSEL (1 << 0) | 239 | #define TI_CLK_DPLL_HAS_FREQSEL (1 << 0) |