public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] ehci: Fix EHCI init for OMAP3EVM
@ 2009-07-06  7:58 Ajay Kumar Gupta
       [not found] ` <4A51B500.1080004@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Ajay Kumar Gupta @ 2009-07-06  7:58 UTC (permalink / raw)
  Cc: linux-omap, felipe.balbi, tony, Ajay Kumar Gupta

Multimedia Daughter card on OMAP3EVM uses port2
as EHCI port. Other ports (port1 and port3)are
not used. 

Fixes done includes:
	- Port1 GPIO set to -EINVAL
	- GPIO 135 as port2 phy reset pin
	- Mux setup for GPIO 135
	- Chargepump workaround not required on OMAP3EVM

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
---
 arch/arm/mach-omap2/board-omap3evm.c |    2 +-
 arch/arm/mach-omap2/usb-ehci.c       |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index 595beac..ae32e72 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -308,7 +308,7 @@ static void __init omap3_evm_init(void)
 
 	omap_serial_init();
 	usb_musb_init();
-	usb_ehci_init(EHCI_HCD_OMAP_MODE_PHY, true, true, 57, 61);
+	usb_ehci_init(EHCI_HCD_OMAP_MODE_PHY, false, true, -EINVAL, 135);
 	ads7846_dev_init();
 }
 
diff --git a/arch/arm/mach-omap2/usb-ehci.c b/arch/arm/mach-omap2/usb-ehci.c
index 53e6e85..bf4bf77 100644
--- a/arch/arm/mach-omap2/usb-ehci.c
+++ b/arch/arm/mach-omap2/usb-ehci.c
@@ -173,6 +173,10 @@ void __init usb_ehci_init(enum ehci_hcd_omap_mode phy_mode,
 	if (cpu_is_omap34xx())
 		setup_ehci_io_mux(phy_mode);
 
+#ifdef CONFIG_MACH_OMAP3EVM
+	/* Setup phy reset pin for EHCI on OMAP3EVM */
+	omap_cfg_reg(AF4_34XX_GPIO135_OUT);
+#endif
 	if (platform_device_register(&ehci_device) < 0) {
 		printk(KERN_ERR "Unable to register HS-USB (EHCI) device\n");
 		return;
-- 
1.6.2.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-06  9:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06  7:58 [PATCH 2/2] ehci: Fix EHCI init for OMAP3EVM Ajay Kumar Gupta
     [not found] ` <4A51B500.1080004@gmail.com>
2009-07-06  8:55   ` Gupta, Ajay Kumar
2009-07-06  9:50     ` Felipe Balbi
2009-07-06  9:53       ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox