diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-2430sdp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-2430sdp.c | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 42f49f785c93..8538e4131d27 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -31,13 +31,13 @@ | |||
31 | #include <asm/mach/map.h> | 31 | #include <asm/mach/map.h> |
32 | 32 | ||
33 | #include <mach/gpio.h> | 33 | #include <mach/gpio.h> |
34 | #include <plat/mux.h> | ||
35 | #include <plat/board.h> | 34 | #include <plat/board.h> |
36 | #include <plat/common.h> | 35 | #include <plat/common.h> |
37 | #include <plat/gpmc.h> | 36 | #include <plat/gpmc.h> |
38 | #include <plat/usb.h> | 37 | #include <plat/usb.h> |
39 | #include <plat/gpmc-smc91x.h> | 38 | #include <plat/gpmc-smc91x.h> |
40 | 39 | ||
40 | #include "mux.h" | ||
41 | #include "hsmmc.h" | 41 | #include "hsmmc.h" |
42 | 42 | ||
43 | #define SDP2430_CS0_BASE 0x04000000 | 43 | #define SDP2430_CS0_BASE 0x04000000 |
@@ -122,11 +122,7 @@ static struct omap_smc91x_platform_data board_smc91x_data = { | |||
122 | 122 | ||
123 | static void __init board_smc91x_init(void) | 123 | static void __init board_smc91x_init(void) |
124 | { | 124 | { |
125 | if (omap_rev() > OMAP3430_REV_ES1_0) | 125 | omap_mux_init_gpio(149, OMAP_PIN_INPUT); |
126 | board_smc91x_data.gpio_irq = 6; | ||
127 | else | ||
128 | board_smc91x_data.gpio_irq = 29; | ||
129 | |||
130 | gpmc_smc91x_init(&board_smc91x_data); | 126 | gpmc_smc91x_init(&board_smc91x_data); |
131 | } | 127 | } |
132 | 128 | ||
@@ -217,17 +213,30 @@ static struct omap_usb_config sdp2430_usb_config __initdata = { | |||
217 | .pins[0] = 3, | 213 | .pins[0] = 3, |
218 | }; | 214 | }; |
219 | 215 | ||
216 | #ifdef CONFIG_OMAP_MUX | ||
217 | static struct omap_board_mux board_mux[] __initdata = { | ||
218 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
219 | }; | ||
220 | #else | ||
221 | #define board_mux NULL | ||
222 | #endif | ||
223 | |||
220 | static void __init omap_2430sdp_init(void) | 224 | static void __init omap_2430sdp_init(void) |
221 | { | 225 | { |
222 | int ret; | 226 | int ret; |
223 | 227 | ||
228 | omap2430_mux_init(board_mux, OMAP_PACKAGE_ZAC); | ||
229 | |||
224 | omap2430_i2c_init(); | 230 | omap2430_i2c_init(); |
225 | 231 | ||
226 | platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); | 232 | platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); |
227 | omap_serial_init(); | 233 | omap_serial_init(); |
228 | omap2_hsmmc_init(mmc); | 234 | omap2_hsmmc_init(mmc); |
229 | omap_usb_init(&sdp2430_usb_config); | 235 | omap2_usbfs_init(&sdp2430_usb_config); |
236 | |||
237 | omap_mux_init_signal("usb0hs_stp", OMAP_PULL_ENA | OMAP_PULL_UP); | ||
230 | usb_musb_init(&musb_board_data); | 238 | usb_musb_init(&musb_board_data); |
239 | |||
231 | board_smc91x_init(); | 240 | board_smc91x_init(); |
232 | 241 | ||
233 | /* Turn off secondary LCD backlight */ | 242 | /* Turn off secondary LCD backlight */ |