[PATCH 126/133] [Jaunty SRU] ARM.imx51 Freescale:ENGR00113331 set host mode after usbcmd reset for ehci_run.

Brad Figg brad.figg at canonical.com
Thu Jul 9 16:49:56 UTC 2009


From: Jun Li <r65092 at freescale.com>

For those designs that contain both host & device capability,
the controller will default to an idle state and will need to
be initialized to the desired operating mode after reset.
For combination host/device controllers of FSL, SW need program
USBMODE register to make controller to be in host mode.

Signed-off-by: Li Jun <r65092 at freescale.com>
Signed-off-by: Brad Figg <brad.figg at canonical.com>
---
 drivers/usb/host/ehci-hcd.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 43a22ee..df5fb24 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -596,6 +596,14 @@ static int ehci_run (struct usb_hcd *hcd)
 #endif
 	}
 
+	/* For those designs that contain both host & device capability,
+	 * the controller will default to an idle state and will need to
+	 * be initialized to the desired operating mode after reset.
+	 * For combination host/device controllers of FSL, SW need program
+	 * For combination host/device controllers of FSL, SW need program
+	 */
+	temp = readl(hcd->regs + 0x1a8);
+	writel(temp | (3 << 0), hcd->regs + 0x1a8);
 
 	// Philips, Intel, and maybe others need CMD_RUN before the
 	// root hub will detect new devices (why?); NEC doesn't
-- 
1.6.0.4





More information about the kernel-team mailing list