aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r--arch/arm/mach-omap2/io.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 7362b69a154d..d87e23a24dcd 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -361,6 +361,24 @@ void __init omap2_init_common_infrastructure(void)
361#endif 361#endif
362 omap_hwmod_for_each(_set_hwmod_postsetup_state, &postsetup_state); 362 omap_hwmod_for_each(_set_hwmod_postsetup_state, &postsetup_state);
363 363
364 /*
365 * Set the default postsetup state for unusual modules (like
366 * MPU WDT).
367 *
368 * The postsetup_state is not actually used until
369 * omap_hwmod_late_init(), so boards that desire full watchdog
370 * coverage of kernel initialization can reprogram the
371 * postsetup_state between the calls to
372 * omap2_init_common_infra() and omap2_init_common_devices().
373 *
374 * XXX ideally we could detect whether the MPU WDT was currently
375 * enabled here and make this conditional
376 */
377 postsetup_state = _HWMOD_STATE_DISABLED;
378 omap_hwmod_for_each_by_class("wd_timer",
379 _set_hwmod_postsetup_state,
380 &postsetup_state);
381
364 omap_pm_if_early_init(); 382 omap_pm_if_early_init();
365 383
366 if (cpu_is_omap2420()) 384 if (cpu_is_omap2420())