diff options
author | Russell King - ARM Linux <linux@arm.linux.org.uk> | 2011-02-14 18:40:20 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-14 18:40:20 -0500 |
commit | 3dc3bad6f1b316d79d9d1d596a590b5097cb3dc4 (patch) | |
tree | 2c8376da2652ac81bbadd08ef2ff8a28e1757c8e /arch/arm/mach-omap2/board-omap3stalker.c | |
parent | 100b33c8bd8a3235fd0b7948338d6cbb3db3c63d (diff) |
ARM: OMAP2: use early init hook
Move non-mapping and non-irq initialization code out of .map_io and
.init_irq respectively into the new init_early hook.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3stalker.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index 2a2dad447e86..5d1ccef69164 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -591,12 +591,16 @@ static struct spi_board_info omap3stalker_spi_board_info[] = { | |||
591 | static struct omap_board_config_kernel omap3_stalker_config[] __initdata = { | 591 | static struct omap_board_config_kernel omap3_stalker_config[] __initdata = { |
592 | }; | 592 | }; |
593 | 593 | ||
594 | static void __init omap3_stalker_init_irq(void) | 594 | static void __init omap3_stalker_init_early(void) |
595 | { | 595 | { |
596 | omap_board_config = omap3_stalker_config; | 596 | omap_board_config = omap3_stalker_config; |
597 | omap_board_config_size = ARRAY_SIZE(omap3_stalker_config); | 597 | omap_board_config_size = ARRAY_SIZE(omap3_stalker_config); |
598 | omap2_init_common_infrastructure(); | 598 | omap2_init_common_infrastructure(); |
599 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, NULL); | 599 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, NULL); |
600 | } | ||
601 | |||
602 | static void __init omap3_stalker_init_irq(void) | ||
603 | { | ||
600 | omap_init_irq(); | 604 | omap_init_irq(); |
601 | #ifdef CONFIG_OMAP_32K_TIMER | 605 | #ifdef CONFIG_OMAP_32K_TIMER |
602 | omap2_gp_clockevent_set_gptimer(12); | 606 | omap2_gp_clockevent_set_gptimer(12); |
@@ -666,6 +670,7 @@ MACHINE_START(SBC3530, "OMAP3 STALKER") | |||
666 | /* Maintainer: Jason Lam -lzg@ema-tech.com */ | 670 | /* Maintainer: Jason Lam -lzg@ema-tech.com */ |
667 | .boot_params = 0x80000100, | 671 | .boot_params = 0x80000100, |
668 | .map_io = omap3_map_io, | 672 | .map_io = omap3_map_io, |
673 | .init_early = omap3_stalker_init_early, | ||
669 | .init_irq = omap3_stalker_init_irq, | 674 | .init_irq = omap3_stalker_init_irq, |
670 | .init_machine = omap3_stalker_init, | 675 | .init_machine = omap3_stalker_init, |
671 | .timer = &omap_timer, | 676 | .timer = &omap_timer, |