aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-rm680.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2011-08-23 02:57:23 -0400
committerTony Lindgren <tony@atomide.com>2011-08-24 07:48:10 -0400
commita4ca9dbe44a167d63545c7ac2b5a36d7b0b415b6 (patch)
treed035c4251bdd45aff89e9e6c72ba644ec679f7b7 /arch/arm/mach-omap2/board-rm680.c
parentf41caddbe73f52a42f529d668ce47b4d693fd2c0 (diff)
ARM: OMAP: Move omap2_init_common_devices out of init_early
There's no need to call omap2_init_common_devices from init_early. It no longer does anything else except reprogram the memory timings for some boards, so it's better to do it later so we have a chance to get console messages if something goes wrong. Move it to happen after omap_serial_init gets called. And while patching it anyways, rename it to omap_sdrc_init as suggested by Benoit Cousson <b-cousson@ti.com>. Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-rm680.c')
-rw-r--r--arch/arm/mach-omap2/board-rm680.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-rm680.c b/arch/arm/mach-omap2/board-rm680.c
index 7dfed24ee12e..a6f76e13c15b 100644
--- a/arch/arm/mach-omap2/board-rm680.c
+++ b/arch/arm/mach-omap2/board-rm680.c
@@ -125,11 +125,7 @@ static void __init rm680_peripherals_init(void)
125 125
126static void __init rm680_init_early(void) 126static void __init rm680_init_early(void)
127{ 127{
128 struct omap_sdrc_params *sdrc_params;
129
130 omap2_init_common_infrastructure(); 128 omap2_init_common_infrastructure();
131 sdrc_params = nokia_get_sdram_timings();
132 omap2_init_common_devices(sdrc_params, sdrc_params);
133} 129}
134 130
135#ifdef CONFIG_OMAP_MUX 131#ifdef CONFIG_OMAP_MUX
@@ -140,8 +136,14 @@ static struct omap_board_mux board_mux[] __initdata = {
140 136
141static void __init rm680_init(void) 137static void __init rm680_init(void)
142{ 138{
139 struct omap_sdrc_params *sdrc_params;
140
143 omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); 141 omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
144 omap_serial_init(); 142 omap_serial_init();
143
144 sdrc_params = nokia_get_sdram_timings();
145 omap_sdrc_init(sdrc_params, sdrc_params);
146
145 usb_musb_init(NULL); 147 usb_musb_init(NULL);
146 rm680_peripherals_init(); 148 rm680_peripherals_init();
147} 149}