diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-cm-t3517.c')
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t3517.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/arm/mach-omap2/board-cm-t3517.c index 8e18dc76b11e..a27e3eee8292 100644 --- a/arch/arm/mach-omap2/board-cm-t3517.c +++ b/arch/arm/mach-omap2/board-cm-t3517.c | |||
@@ -254,16 +254,13 @@ static inline void cm_t3517_init_nand(void) {} | |||
254 | static struct omap_board_config_kernel cm_t3517_config[] __initdata = { | 254 | static struct omap_board_config_kernel cm_t3517_config[] __initdata = { |
255 | }; | 255 | }; |
256 | 256 | ||
257 | static void __init cm_t3517_init_irq(void) | 257 | static void __init cm_t3517_init_early(void) |
258 | { | 258 | { |
259 | omap_board_config = cm_t3517_config; | ||
260 | omap_board_config_size = ARRAY_SIZE(cm_t3517_config); | ||
261 | |||
262 | omap2_init_common_infrastructure(); | 259 | omap2_init_common_infrastructure(); |
263 | omap2_init_common_devices(NULL, NULL); | 260 | omap2_init_common_devices(NULL, NULL); |
264 | omap_init_irq(); | ||
265 | } | 261 | } |
266 | 262 | ||
263 | #ifdef CONFIG_OMAP_MUX | ||
267 | static struct omap_board_mux board_mux[] __initdata = { | 264 | static struct omap_board_mux board_mux[] __initdata = { |
268 | /* GPIO186 - Green LED */ | 265 | /* GPIO186 - Green LED */ |
269 | OMAP3_MUX(SYS_CLKOUT2, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT), | 266 | OMAP3_MUX(SYS_CLKOUT2, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT), |
@@ -289,11 +286,14 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
289 | 286 | ||
290 | { .reg_offset = OMAP_MUX_TERMINATOR }, | 287 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
291 | }; | 288 | }; |
289 | #endif | ||
292 | 290 | ||
293 | static void __init cm_t3517_init(void) | 291 | static void __init cm_t3517_init(void) |
294 | { | 292 | { |
295 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 293 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
296 | omap_serial_init(); | 294 | omap_serial_init(); |
295 | omap_board_config = cm_t3517_config; | ||
296 | omap_board_config_size = ARRAY_SIZE(cm_t3517_config); | ||
297 | cm_t3517_init_leds(); | 297 | cm_t3517_init_leds(); |
298 | cm_t3517_init_nand(); | 298 | cm_t3517_init_nand(); |
299 | cm_t3517_init_rtc(); | 299 | cm_t3517_init_rtc(); |
@@ -303,9 +303,10 @@ static void __init cm_t3517_init(void) | |||
303 | 303 | ||
304 | MACHINE_START(CM_T3517, "Compulab CM-T3517") | 304 | MACHINE_START(CM_T3517, "Compulab CM-T3517") |
305 | .boot_params = 0x80000100, | 305 | .boot_params = 0x80000100, |
306 | .map_io = omap3_map_io, | ||
307 | .reserve = omap_reserve, | 306 | .reserve = omap_reserve, |
308 | .init_irq = cm_t3517_init_irq, | 307 | .map_io = omap3_map_io, |
308 | .init_early = cm_t3517_init_early, | ||
309 | .init_irq = omap_init_irq, | ||
309 | .init_machine = cm_t3517_init, | 310 | .init_machine = cm_t3517_init, |
310 | .timer = &omap_timer, | 311 | .timer = &omap_timer, |
311 | MACHINE_END | 312 | MACHINE_END |