diff options
author | Viral Mehta <viral.mehta@lntinfotech.com> | 2010-05-10 17:29:15 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-05-20 13:48:57 -0400 |
commit | 9c68eb8197a07a157c72ae3f31877e53a44786c5 (patch) | |
tree | f03bf79b3b594b17f84377e8a72d84230b8682ae /arch/arm/mach-omap2 | |
parent | 39ecc703d19da2e40296d84d487f843c03f82d25 (diff) |
omap2: Add OHCI USB platform init for 2430 SDP
Add platform init code for OHCI USB on OMAP2430 SDP
Signed-off-by: Viral Mehta <viral.mehta@lntinfotech.com>
[tony@atomide.com: Updated subject to mention the board name]
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/board-2430sdp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 85f5f33bed2f..a11a575745e4 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -207,6 +207,15 @@ static struct omap_musb_board_data musb_board_data = { | |||
207 | .mode = MUSB_OTG, | 207 | .mode = MUSB_OTG, |
208 | .power = 100, | 208 | .power = 100, |
209 | }; | 209 | }; |
210 | static struct omap_usb_config sdp2430_usb_config __initdata = { | ||
211 | .otg = 1, | ||
212 | #ifdef CONFIG_USB_GADGET_OMAP | ||
213 | .hmc_mode = 0x0, | ||
214 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | ||
215 | .hmc_mode = 0x1, | ||
216 | #endif | ||
217 | .pins[0] = 3, | ||
218 | }; | ||
210 | 219 | ||
211 | static void __init omap_2430sdp_init(void) | 220 | static void __init omap_2430sdp_init(void) |
212 | { | 221 | { |
@@ -217,6 +226,7 @@ static void __init omap_2430sdp_init(void) | |||
217 | platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); | 226 | platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); |
218 | omap_serial_init(); | 227 | omap_serial_init(); |
219 | omap2_hsmmc_init(mmc); | 228 | omap2_hsmmc_init(mmc); |
229 | omap_usb_init(&sdp2430_usb_config); | ||
220 | usb_musb_init(&musb_board_data); | 230 | usb_musb_init(&musb_board_data); |
221 | board_smc91x_init(); | 231 | board_smc91x_init(); |
222 | 232 | ||