diff options
author | Tony Lindgren <tony@atomide.com> | 2011-08-23 02:57:23 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-08-24 07:48:10 -0400 |
commit | a4ca9dbe44a167d63545c7ac2b5a36d7b0b415b6 (patch) | |
tree | d035c4251bdd45aff89e9e6c72ba644ec679f7b7 /arch/arm/mach-omap2/board-zoom.c | |
parent | f41caddbe73f52a42f529d668ce47b4d693fd2c0 (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-zoom.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/board-zoom.c b/arch/arm/mach-omap2/board-zoom.c index 8a98c3c303fc..569526456420 100644 --- a/arch/arm/mach-omap2/board-zoom.c +++ b/arch/arm/mach-omap2/board-zoom.c | |||
@@ -37,12 +37,6 @@ | |||
37 | static void __init omap_zoom_init_early(void) | 37 | static void __init omap_zoom_init_early(void) |
38 | { | 38 | { |
39 | omap2_init_common_infrastructure(); | 39 | omap2_init_common_infrastructure(); |
40 | if (machine_is_omap_zoom2()) | ||
41 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, | ||
42 | mt46h32m32lf6_sdrc_params); | ||
43 | else if (machine_is_omap_zoom3()) | ||
44 | omap2_init_common_devices(h8mbx00u0mer0em_sdrc_params, | ||
45 | h8mbx00u0mer0em_sdrc_params); | ||
46 | } | 40 | } |
47 | 41 | ||
48 | #ifdef CONFIG_OMAP_MUX | 42 | #ifdef CONFIG_OMAP_MUX |
@@ -129,6 +123,14 @@ static void __init omap_zoom_init(void) | |||
129 | ZOOM_NAND_CS, NAND_BUSWIDTH_16); | 123 | ZOOM_NAND_CS, NAND_BUSWIDTH_16); |
130 | zoom_debugboard_init(); | 124 | zoom_debugboard_init(); |
131 | zoom_peripherals_init(); | 125 | zoom_peripherals_init(); |
126 | |||
127 | if (machine_is_omap_zoom2()) | ||
128 | omap_sdrc_init(mt46h32m32lf6_sdrc_params, | ||
129 | mt46h32m32lf6_sdrc_params); | ||
130 | else if (machine_is_omap_zoom3()) | ||
131 | omap_sdrc_init(h8mbx00u0mer0em_sdrc_params, | ||
132 | h8mbx00u0mer0em_sdrc_params); | ||
133 | |||
132 | zoom_display_init(); | 134 | zoom_display_init(); |
133 | } | 135 | } |
134 | 136 | ||