[PATCH 01/10] USB ehci: Set to host mode on tt capable controllers
Sascha Hauer
s.hauer at pengutronix.de
Thu Jan 20 04:46:52 EST 2011
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/usb/host/ehci-hcd.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 802c548..15f7bfd 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -919,6 +919,13 @@ static int ehci_probe(struct device_d *dev)
host->submit_control_msg = submit_control_msg;
host->submit_bulk_msg = submit_bulk_msg;
+ if (ehci->flags & EHCI_HAS_TT) {
+ /* Set to host mode */
+ reg = ehci_readl(ehci->hcor + USBMODE);
+ reg |= USBMODE_CM_HC;
+ writel(reg, ehci->hcor + USBMODE);
+ }
+
usb_register_host(host);
reg = HC_VERSION(ehci_readl(&ehci->hccr->cr_capbase));
--
1.7.2.3
More information about the barebox
mailing list