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.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 3f174d51f67f..5f8c4e1a3fb9 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -351,7 +351,6 @@ static int _set_hwmod_postsetup_state(struct omap_hwmod *oh, void *data)
351 351
352static void __init omap_common_init_early(void) 352static void __init omap_common_init_early(void)
353{ 353{
354 omap2_check_revision();
355 omap_init_consistent_dma_size(); 354 omap_init_consistent_dma_size();
356} 355}
357 356
@@ -388,10 +387,11 @@ static void __init omap_hwmod_init_postsetup(void)
388 omap_pm_if_early_init(); 387 omap_pm_if_early_init();
389} 388}
390 389
391#ifdef CONFIG_ARCH_OMAP2 390#ifdef CONFIG_SOC_OMAP2420
392void __init omap2420_init_early(void) 391void __init omap2420_init_early(void)
393{ 392{
394 omap2_set_globals_242x(); 393 omap2_set_globals_242x();
394 omap2xxx_check_revision();
395 omap_common_init_early(); 395 omap_common_init_early();
396 omap2xxx_voltagedomains_init(); 396 omap2xxx_voltagedomains_init();
397 omap242x_powerdomains_init(); 397 omap242x_powerdomains_init();
@@ -400,10 +400,13 @@ void __init omap2420_init_early(void)
400 omap_hwmod_init_postsetup(); 400 omap_hwmod_init_postsetup();
401 omap2420_clk_init(); 401 omap2420_clk_init();
402} 402}
403#endif
403 404
405#ifdef CONFIG_SOC_OMAP2430
404void __init omap2430_init_early(void) 406void __init omap2430_init_early(void)
405{ 407{
406 omap2_set_globals_243x(); 408 omap2_set_globals_243x();
409 omap2xxx_check_revision();
407 omap_common_init_early(); 410 omap_common_init_early();
408 omap2xxx_voltagedomains_init(); 411 omap2xxx_voltagedomains_init();
409 omap243x_powerdomains_init(); 412 omap243x_powerdomains_init();
@@ -422,6 +425,8 @@ void __init omap2430_init_early(void)
422void __init omap3_init_early(void) 425void __init omap3_init_early(void)
423{ 426{
424 omap2_set_globals_3xxx(); 427 omap2_set_globals_3xxx();
428 omap3xxx_check_revision();
429 omap3xxx_check_features();
425 omap_common_init_early(); 430 omap_common_init_early();
426 omap3xxx_voltagedomains_init(); 431 omap3xxx_voltagedomains_init();
427 omap3xxx_powerdomains_init(); 432 omap3xxx_powerdomains_init();
@@ -454,6 +459,8 @@ void __init am35xx_init_early(void)
454void __init ti81xx_init_early(void) 459void __init ti81xx_init_early(void)
455{ 460{
456 omap2_set_globals_ti81xx(); 461 omap2_set_globals_ti81xx();
462 omap3xxx_check_revision();
463 ti81xx_check_features();
457 omap_common_init_early(); 464 omap_common_init_early();
458 omap3xxx_voltagedomains_init(); 465 omap3xxx_voltagedomains_init();
459 omap3xxx_powerdomains_init(); 466 omap3xxx_powerdomains_init();
@@ -468,6 +475,8 @@ void __init ti81xx_init_early(void)
468void __init omap4430_init_early(void) 475void __init omap4430_init_early(void)
469{ 476{
470 omap2_set_globals_443x(); 477 omap2_set_globals_443x();
478 omap4xxx_check_revision();
479 omap4xxx_check_features();
471 omap_common_init_early(); 480 omap_common_init_early();
472 omap44xx_voltagedomains_init(); 481 omap44xx_voltagedomains_init();
473 omap44xx_powerdomains_init(); 482 omap44xx_powerdomains_init();