From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Pfr6t-00040e-CI for barebox@lists.infradead.org; Thu, 20 Jan 2011 09:47:24 +0000 From: Sascha Hauer Date: Thu, 20 Jan 2011 10:46:52 +0100 Message-Id: <1295516821-8988-2-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1295516821-8988-1-git-send-email-s.hauer@pengutronix.de> References: <1295516821-8988-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 01/10] USB ehci: Set to host mode on tt capable controllers To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- 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 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox