diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-3430sdp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index ac262cd74503..bd57ec76dc5e 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -167,26 +167,23 @@ static struct platform_device *sdp3430_devices[] __initdata = { | |||
167 | &sdp3430_lcd_device, | 167 | &sdp3430_lcd_device, |
168 | }; | 168 | }; |
169 | 169 | ||
170 | static void __init omap_3430sdp_init_irq(void) | ||
171 | { | ||
172 | omap2_init_common_hw(hyb18m512160af6_sdrc_params, NULL); | ||
173 | omap_init_irq(); | ||
174 | omap_gpio_init(); | ||
175 | } | ||
176 | |||
177 | static struct omap_uart_config sdp3430_uart_config __initdata = { | ||
178 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | ||
179 | }; | ||
180 | |||
181 | static struct omap_lcd_config sdp3430_lcd_config __initdata = { | 170 | static struct omap_lcd_config sdp3430_lcd_config __initdata = { |
182 | .ctrl_name = "internal", | 171 | .ctrl_name = "internal", |
183 | }; | 172 | }; |
184 | 173 | ||
185 | static struct omap_board_config_kernel sdp3430_config[] __initdata = { | 174 | static struct omap_board_config_kernel sdp3430_config[] __initdata = { |
186 | { OMAP_TAG_UART, &sdp3430_uart_config }, | ||
187 | { OMAP_TAG_LCD, &sdp3430_lcd_config }, | 175 | { OMAP_TAG_LCD, &sdp3430_lcd_config }, |
188 | }; | 176 | }; |
189 | 177 | ||
178 | static void __init omap_3430sdp_init_irq(void) | ||
179 | { | ||
180 | omap_board_config = sdp3430_config; | ||
181 | omap_board_config_size = ARRAY_SIZE(sdp3430_config); | ||
182 | omap2_init_common_hw(hyb18m512160af6_sdrc_params, NULL); | ||
183 | omap_init_irq(); | ||
184 | omap_gpio_init(); | ||
185 | } | ||
186 | |||
190 | static int sdp3430_batt_table[] = { | 187 | static int sdp3430_batt_table[] = { |
191 | /* 0 C*/ | 188 | /* 0 C*/ |
192 | 30800, 29500, 28300, 27100, | 189 | 30800, 29500, 28300, 27100, |
@@ -478,12 +475,15 @@ static inline void board_smc91x_init(void) | |||
478 | 475 | ||
479 | #endif | 476 | #endif |
480 | 477 | ||
478 | static void enable_board_wakeup_source(void) | ||
479 | { | ||
480 | omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line (keypad) */ | ||
481 | } | ||
482 | |||
481 | static void __init omap_3430sdp_init(void) | 483 | static void __init omap_3430sdp_init(void) |
482 | { | 484 | { |
483 | omap3430_i2c_init(); | 485 | omap3430_i2c_init(); |
484 | platform_add_devices(sdp3430_devices, ARRAY_SIZE(sdp3430_devices)); | 486 | platform_add_devices(sdp3430_devices, ARRAY_SIZE(sdp3430_devices)); |
485 | omap_board_config = sdp3430_config; | ||
486 | omap_board_config_size = ARRAY_SIZE(sdp3430_config); | ||
487 | if (omap_rev() > OMAP3430_REV_ES1_0) | 487 | if (omap_rev() > OMAP3430_REV_ES1_0) |
488 | ts_gpio = SDP3430_TS_GPIO_IRQ_SDPV2; | 488 | ts_gpio = SDP3430_TS_GPIO_IRQ_SDPV2; |
489 | else | 489 | else |
@@ -495,6 +495,7 @@ static void __init omap_3430sdp_init(void) | |||
495 | omap_serial_init(); | 495 | omap_serial_init(); |
496 | usb_musb_init(); | 496 | usb_musb_init(); |
497 | board_smc91x_init(); | 497 | board_smc91x_init(); |
498 | enable_board_wakeup_source(); | ||
498 | } | 499 | } |
499 | 500 | ||
500 | static void __init omap_3430sdp_map_io(void) | 501 | static void __init omap_3430sdp_map_io(void) |