diff options
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
| -rw-r--r-- | arch/arm/mach-omap2/io.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 3cfb425ea67e..e95b47b3bfd3 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
| @@ -316,6 +316,8 @@ static int __init _omap2_init_reprogram_sdrc(void) | |||
| 316 | void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, | 316 | void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, |
| 317 | struct omap_sdrc_params *sdrc_cs1) | 317 | struct omap_sdrc_params *sdrc_cs1) |
| 318 | { | 318 | { |
| 319 | u8 skip_setup_idle = 0; | ||
| 320 | |||
| 319 | pwrdm_init(powerdomains_omap); | 321 | pwrdm_init(powerdomains_omap); |
| 320 | clkdm_init(clockdomains_omap, clkdm_autodeps); | 322 | clkdm_init(clockdomains_omap, clkdm_autodeps); |
| 321 | if (cpu_is_omap242x()) | 323 | if (cpu_is_omap242x()) |
| @@ -340,8 +342,13 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, | |||
| 340 | pr_err("Could not init clock framework - unknown CPU\n"); | 342 | pr_err("Could not init clock framework - unknown CPU\n"); |
| 341 | 343 | ||
| 342 | omap_serial_early_init(); | 344 | omap_serial_early_init(); |
| 345 | |||
| 346 | #ifndef CONFIG_PM_RUNTIME | ||
| 347 | skip_setup_idle = 1; | ||
| 348 | #endif | ||
| 343 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) /* FIXME: OMAP4 */ | 349 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) /* FIXME: OMAP4 */ |
| 344 | omap_hwmod_late_init(); | 350 | omap_hwmod_late_init(skip_setup_idle); |
| 351 | |||
| 345 | omap_pm_if_init(); | 352 | omap_pm_if_init(); |
| 346 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) { | 353 | if (cpu_is_omap24xx() || cpu_is_omap34xx()) { |
| 347 | omap2_sdrc_init(sdrc_cs0, sdrc_cs1); | 354 | omap2_sdrc_init(sdrc_cs0, sdrc_cs1); |
