diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-h4.c')
-rw-r--r-- | arch/arm/mach-omap2/board-h4.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 25cc9dad4b02..bac7933b8cbb 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -290,14 +290,15 @@ static struct omap_board_config_kernel h4_config[] __initdata = { | |||
290 | { OMAP_TAG_LCD, &h4_lcd_config }, | 290 | { OMAP_TAG_LCD, &h4_lcd_config }, |
291 | }; | 291 | }; |
292 | 292 | ||
293 | static void __init omap_h4_init_irq(void) | 293 | static void __init omap_h4_init_early(void) |
294 | { | 294 | { |
295 | omap_board_config = h4_config; | ||
296 | omap_board_config_size = ARRAY_SIZE(h4_config); | ||
297 | omap2_init_common_infrastructure(); | 295 | omap2_init_common_infrastructure(); |
298 | omap2_init_common_devices(NULL, NULL); | 296 | omap2_init_common_devices(NULL, NULL); |
297 | } | ||
298 | |||
299 | static void __init omap_h4_init_irq(void) | ||
300 | { | ||
299 | omap_init_irq(); | 301 | omap_init_irq(); |
300 | h4_init_flash(); | ||
301 | } | 302 | } |
302 | 303 | ||
303 | static struct at24_platform_data m24c01 = { | 304 | static struct at24_platform_data m24c01 = { |
@@ -330,6 +331,9 @@ static void __init omap_h4_init(void) | |||
330 | { | 331 | { |
331 | omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAF); | 332 | omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAF); |
332 | 333 | ||
334 | omap_board_config = h4_config; | ||
335 | omap_board_config_size = ARRAY_SIZE(h4_config); | ||
336 | |||
333 | /* | 337 | /* |
334 | * Make sure the serial ports are muxed on at this point. | 338 | * Make sure the serial ports are muxed on at this point. |
335 | * You have to mux them off in device drivers later on | 339 | * You have to mux them off in device drivers later on |
@@ -367,6 +371,7 @@ static void __init omap_h4_init(void) | |||
367 | platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices)); | 371 | platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices)); |
368 | omap2_usbfs_init(&h4_usb_config); | 372 | omap2_usbfs_init(&h4_usb_config); |
369 | omap_serial_init(); | 373 | omap_serial_init(); |
374 | h4_init_flash(); | ||
370 | } | 375 | } |
371 | 376 | ||
372 | static void __init omap_h4_map_io(void) | 377 | static void __init omap_h4_map_io(void) |
@@ -378,8 +383,9 @@ static void __init omap_h4_map_io(void) | |||
378 | MACHINE_START(OMAP_H4, "OMAP2420 H4 board") | 383 | MACHINE_START(OMAP_H4, "OMAP2420 H4 board") |
379 | /* Maintainer: Paul Mundt <paul.mundt@nokia.com> */ | 384 | /* Maintainer: Paul Mundt <paul.mundt@nokia.com> */ |
380 | .boot_params = 0x80000100, | 385 | .boot_params = 0x80000100, |
381 | .map_io = omap_h4_map_io, | ||
382 | .reserve = omap_reserve, | 386 | .reserve = omap_reserve, |
387 | .map_io = omap_h4_map_io, | ||
388 | .init_early = omap_h4_init_early, | ||
383 | .init_irq = omap_h4_init_irq, | 389 | .init_irq = omap_h4_init_irq, |
384 | .init_machine = omap_h4_init, | 390 | .init_machine = omap_h4_init, |
385 | .timer = &omap_timer, | 391 | .timer = &omap_timer, |