diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-h4.c')
-rw-r--r-- | arch/arm/mach-omap2/board-h4.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 7b1d61d5bb2c..eaa02d012c5c 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -268,18 +268,6 @@ static void __init h4_init_flash(void) | |||
268 | h4_flash_resource.end = base + SZ_64M - 1; | 268 | h4_flash_resource.end = base + SZ_64M - 1; |
269 | } | 269 | } |
270 | 270 | ||
271 | static void __init omap_h4_init_irq(void) | ||
272 | { | ||
273 | omap2_init_common_hw(NULL, NULL); | ||
274 | omap_init_irq(); | ||
275 | omap_gpio_init(); | ||
276 | h4_init_flash(); | ||
277 | } | ||
278 | |||
279 | static struct omap_uart_config h4_uart_config __initdata = { | ||
280 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
281 | }; | ||
282 | |||
283 | static struct omap_lcd_config h4_lcd_config __initdata = { | 271 | static struct omap_lcd_config h4_lcd_config __initdata = { |
284 | .ctrl_name = "internal", | 272 | .ctrl_name = "internal", |
285 | }; | 273 | }; |
@@ -318,10 +306,19 @@ static struct omap_usb_config h4_usb_config __initdata = { | |||
318 | }; | 306 | }; |
319 | 307 | ||
320 | static struct omap_board_config_kernel h4_config[] = { | 308 | static struct omap_board_config_kernel h4_config[] = { |
321 | { OMAP_TAG_UART, &h4_uart_config }, | ||
322 | { OMAP_TAG_LCD, &h4_lcd_config }, | 309 | { OMAP_TAG_LCD, &h4_lcd_config }, |
323 | }; | 310 | }; |
324 | 311 | ||
312 | static void __init omap_h4_init_irq(void) | ||
313 | { | ||
314 | omap_board_config = h4_config; | ||
315 | omap_board_config_size = ARRAY_SIZE(h4_config); | ||
316 | omap2_init_common_hw(NULL, NULL); | ||
317 | omap_init_irq(); | ||
318 | omap_gpio_init(); | ||
319 | h4_init_flash(); | ||
320 | } | ||
321 | |||
325 | static struct at24_platform_data m24c01 = { | 322 | static struct at24_platform_data m24c01 = { |
326 | .byte_len = SZ_1K / 8, | 323 | .byte_len = SZ_1K / 8, |
327 | .page_size = 16, | 324 | .page_size = 16, |
@@ -366,8 +363,6 @@ static void __init omap_h4_init(void) | |||
366 | ARRAY_SIZE(h4_i2c_board_info)); | 363 | ARRAY_SIZE(h4_i2c_board_info)); |
367 | 364 | ||
368 | platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices)); | 365 | platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices)); |
369 | omap_board_config = h4_config; | ||
370 | omap_board_config_size = ARRAY_SIZE(h4_config); | ||
371 | omap_usb_init(&h4_usb_config); | 366 | omap_usb_init(&h4_usb_config); |
372 | omap_serial_init(); | 367 | omap_serial_init(); |
373 | } | 368 | } |