diff options
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r-- | arch/arm/mach-omap2/io.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 4e1f53d0b880..b9ea70bce563 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -28,7 +28,6 @@ | |||
28 | 28 | ||
29 | #include <asm/mach/map.h> | 29 | #include <asm/mach/map.h> |
30 | 30 | ||
31 | #include <plat/mux.h> | ||
32 | #include <plat/sram.h> | 31 | #include <plat/sram.h> |
33 | #include <plat/sdrc.h> | 32 | #include <plat/sdrc.h> |
34 | #include <plat/gpmc.h> | 33 | #include <plat/gpmc.h> |
@@ -44,6 +43,7 @@ | |||
44 | 43 | ||
45 | #include <plat/clockdomain.h> | 44 | #include <plat/clockdomain.h> |
46 | #include "clockdomains.h" | 45 | #include "clockdomains.h" |
46 | |||
47 | #include <plat/omap_hwmod.h> | 47 | #include <plat/omap_hwmod.h> |
48 | 48 | ||
49 | /* | 49 | /* |
@@ -313,6 +313,8 @@ static int __init _omap2_init_reprogram_sdrc(void) | |||
313 | void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, | 313 | void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, |
314 | struct omap_sdrc_params *sdrc_cs1) | 314 | struct omap_sdrc_params *sdrc_cs1) |
315 | { | 315 | { |
316 | u8 skip_setup_idle = 0; | ||
317 | |||
316 | pwrdm_init(powerdomains_omap); | 318 | pwrdm_init(powerdomains_omap); |
317 | clkdm_init(clockdomains_omap, clkdm_autodeps); | 319 | clkdm_init(clockdomains_omap, clkdm_autodeps); |
318 | if (cpu_is_omap242x()) | 320 | if (cpu_is_omap242x()) |
@@ -321,7 +323,6 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, | |||
321 | omap2430_hwmod_init(); | 323 | omap2430_hwmod_init(); |
322 | else if (cpu_is_omap34xx()) | 324 | else if (cpu_is_omap34xx()) |
323 | omap3xxx_hwmod_init(); | 325 | omap3xxx_hwmod_init(); |
324 | omap2_mux_init(); | ||
325 | /* The OPP tables have to be registered before a clk init */ | 326 | /* The OPP tables have to be registered before a clk init */ |
326 | omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps); | 327 | omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps); |
327 | 328 | ||
@@ -337,9 +338,13 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, | |||
337 | pr_err("Could not init clock framework - unknown CPU\n"); | 338 | pr_err("Could not init clock framework - unknown CPU\n"); |
338 | 339 | ||
339 | omap_serial_early_init(); | 340 | omap_serial_early_init(); |
341 | |||
342 | #ifndef CONFIG_PM_RUNTIME | ||
343 | skip_setup_idle = 1; | ||
344 | #endif | ||
340 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) /* FIXME: OMAP4 */ | 345 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) /* FIXME: OMAP4 */ |
341 | omap_hwmod_late_init(); | 346 | omap_hwmod_late_init(skip_setup_idle); |
342 | omap_pm_if_init(); | 347 | |
343 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) { | 348 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) { |
344 | omap2_sdrc_init(sdrc_cs0, sdrc_cs1); | 349 | omap2_sdrc_init(sdrc_cs0, sdrc_cs1); |
345 | _omap2_init_reprogram_sdrc(); | 350 | _omap2_init_reprogram_sdrc(); |