diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2009-10-22 17:48:14 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-10-22 18:41:16 -0400 |
commit | 5b7815b5ca2c7b44ebaaa33c66a3068d6de27bce (patch) | |
tree | 272ba424ecb938227d7ab4c0d44b3824329e0ba6 /arch/arm | |
parent | b427f92f8cfca2787c18a77bef15cc8b13341774 (diff) |
omap4: Allow omap_serial_early_init() for OMAP4430 board
This patch enables omap_serial_early_init() function for OMAP4430
SDP. Without this the bootup would throw oops in omap_serial_init().
Note that the ifndef CONFIG_ARCH_OMAP4 is split into two sections
to enable omap_serial_early_init(). This ifndef cannot be removed
until omap4 clock framework is implemented.
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-By: Tony Lindgren <tony@atomide.com>
Reviewed-By: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/board-4430sdp.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/io.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index eb37c40ea83a..609a5a4a7e29 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -58,6 +58,8 @@ static void __init gic_init_irq(void) | |||
58 | 58 | ||
59 | static void __init omap_4430sdp_init_irq(void) | 59 | static void __init omap_4430sdp_init_irq(void) |
60 | { | 60 | { |
61 | omap_board_config = sdp4430_config; | ||
62 | omap_board_config_size = ARRAY_SIZE(sdp4430_config); | ||
61 | omap2_init_common_hw(NULL, NULL); | 63 | omap2_init_common_hw(NULL, NULL); |
62 | #ifdef CONFIG_OMAP_32K_TIMER | 64 | #ifdef CONFIG_OMAP_32K_TIMER |
63 | omap2_gp_clockevent_set_gptimer(1); | 65 | omap2_gp_clockevent_set_gptimer(1); |
@@ -70,8 +72,6 @@ static void __init omap_4430sdp_init_irq(void) | |||
70 | static void __init omap_4430sdp_init(void) | 72 | static void __init omap_4430sdp_init(void) |
71 | { | 73 | { |
72 | platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices)); | 74 | platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices)); |
73 | omap_board_config = sdp4430_config; | ||
74 | omap_board_config_size = ARRAY_SIZE(sdp4430_config); | ||
75 | omap_serial_init(); | 75 | omap_serial_init(); |
76 | } | 76 | } |
77 | 77 | ||
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index e3a3bad1d84f..56be87d13edb 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -302,7 +302,9 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, | |||
302 | pwrdm_init(powerdomains_omap); | 302 | pwrdm_init(powerdomains_omap); |
303 | clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps); | 303 | clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps); |
304 | omap2_clk_init(); | 304 | omap2_clk_init(); |
305 | #endif | ||
305 | omap_serial_early_init(); | 306 | omap_serial_early_init(); |
307 | #ifndef CONFIG_ARCH_OMAP4 | ||
306 | omap_hwmod_late_init(); | 308 | omap_hwmod_late_init(); |
307 | omap_pm_if_init(); | 309 | omap_pm_if_init(); |
308 | omap2_sdrc_init(sdrc_cs0, sdrc_cs1); | 310 | omap2_sdrc_init(sdrc_cs0, sdrc_cs1); |