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-omap3beagle.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-omap3beagle.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 46d814ab5656..19bcd004d604 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -536,11 +536,15 @@ static struct platform_device keys_gpio = { | |||
536 | }, | 536 | }, |
537 | }; | 537 | }; |
538 | 538 | ||
539 | static void __init omap3_beagle_init_irq(void) | 539 | static void __init omap3_beagle_init_early(void) |
540 | { | 540 | { |
541 | omap2_init_common_infrastructure(); | 541 | omap2_init_common_infrastructure(); |
542 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, | 542 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, |
543 | mt46h32m32lf6_sdrc_params); | 543 | mt46h32m32lf6_sdrc_params); |
544 | } | ||
545 | |||
546 | static void __init omap3_beagle_init_irq(void) | ||
547 | { | ||
544 | omap_init_irq(); | 548 | omap_init_irq(); |
545 | #ifdef CONFIG_OMAP_32K_TIMER | 549 | #ifdef CONFIG_OMAP_32K_TIMER |
546 | omap2_gp_clockevent_set_gptimer(12); | 550 | omap2_gp_clockevent_set_gptimer(12); |
@@ -638,8 +642,9 @@ static void __init omap3_beagle_init(void) | |||
638 | MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board") | 642 | MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board") |
639 | /* Maintainer: Syed Mohammed Khasim - http://beagleboard.org */ | 643 | /* Maintainer: Syed Mohammed Khasim - http://beagleboard.org */ |
640 | .boot_params = 0x80000100, | 644 | .boot_params = 0x80000100, |
641 | .map_io = omap3_map_io, | ||
642 | .reserve = omap_reserve, | 645 | .reserve = omap_reserve, |
646 | .map_io = omap3_map_io, | ||
647 | .init_early = omap3_beagle_init_early, | ||
643 | .init_irq = omap3_beagle_init_irq, | 648 | .init_irq = omap3_beagle_init_irq, |
644 | .init_machine = omap3_beagle_init, | 649 | .init_machine = omap3_beagle_init, |
645 | .timer = &omap_timer, | 650 | .timer = &omap_timer, |