aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap3evm.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@nokia.com>2009-11-22 13:11:01 -0500
committerTony Lindgren <tony@atomide.com>2009-11-22 13:24:32 -0500
commit58a5491c936957011c92f8cc5097fb3231ee3f9c (patch)
tree8fd45f11ec46785900635279e40fca62cda8ecb5 /arch/arm/mach-omap2/board-omap3evm.c
parent83720a8230f87008deba8619428438f0276b83ca (diff)
omap: Add platform init code for EHCI driver
Add platform init code for EHCI driver. Various fixes to the original patch by Ajay Kumar Gupta <ajay.gupta@ti.com> and Anand Gadiyar <gadiyar@ti.com>. Overo support added by Olof Johansson <olof@lixom.net> Beagle support added by Koen Kooi <koen@beagleboard.org> CM-T32 support added by Mike Rapoport <mike@compulab.co.il> Signed-off-by: Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Koen Kooi <koen@beagleboard.org> Signed-off-by: Mike Rapoport <mike@compulab.co.il> Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com> Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3evm.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3evm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index e0cac96a7860..1edf06adbe3c 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -307,6 +307,18 @@ static struct platform_device *omap3_evm_devices[] __initdata = {
307 &omap3evm_smc911x_device, 307 &omap3evm_smc911x_device,
308}; 308};
309 309
310static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
311
312 .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN,
313 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
314 .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
315
316 .phy_reset = true,
317 .reset_gpio_port[0] = -EINVAL,
318 .reset_gpio_port[1] = 135,
319 .reset_gpio_port[2] = -EINVAL
320};
321
310static void __init omap3_evm_init(void) 322static void __init omap3_evm_init(void)
311{ 323{
312 omap3_evm_i2c_init(); 324 omap3_evm_i2c_init();
@@ -322,6 +334,9 @@ static void __init omap3_evm_init(void)
322 usb_nop_xceiv_register(); 334 usb_nop_xceiv_register();
323#endif 335#endif
324 usb_musb_init(); 336 usb_musb_init();
337 /* Setup EHCI phy reset padconfig */
338 omap_cfg_reg(AF4_34XX_GPIO135_OUT);
339 usb_ehci_init(&ehci_pdata);
325 ads7846_dev_init(); 340 ads7846_dev_init();
326} 341}
327 342