summaryrefslogtreecommitdiffstats
path: root/target/linux/coldfire/patches/021-m5445x_usb_premerge.patch
blob: 4650aae6e4d545965f7e3c625e38b339788f9c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From 3d7f85e904cf9dab191eeab9933ecac1e90d06e4 Mon Sep 17 00:00:00 2001
From: Bruce Schmid <duck@freescale.com>
Date: Thu, 29 Nov 2007 16:30:47 -0700
Subject: [PATCH] USB pre-merge

LTIBName: m5445x-usb-premerge
Signed-off-by: Duck <duck@freescale.com>
---
 drivers/usb/host/ehci-arc.c |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

--- a/drivers/usb/host/ehci-arc.c
+++ b/drivers/usb/host/ehci-arc.c
@@ -373,14 +373,30 @@ static int ehci_fsl_drv_resume(struct pl
 	pr_debug("%s pdev=0x%p  pdata=0x%p  ehci=0x%p  hcd=0x%p\n",
 		 __FUNCTION__, pdev, pdata, ehci, hcd);
 
-	pr_debug("%s ehci->regs=0x%p  hcd->regs=0x%p",
+	pr_debug("%s ehci->regs=0x%p  hcd->regs=0x%p\n",
 		 __FUNCTION__, ehci->regs, hcd->regs);
 
 	memcpy(ehci->regs, (void *)&usb_ehci_regs, sizeof(struct ehci_regs));
+
+#if 0 // DDD test
 	ehci_writel(ehci, usb_ehci_portsc, &ehci->regs->port_status[0]);
+	printk("set portsc %08x  %08x\n", usb_ehci_portsc,
+		ehci_readl(ehci,  &ehci->regs->port_status[0]));
+	printk("set usbmode %08x\n", 
+		ehci_readl(ehci,  &ehci->regs + FSL_SOC_USB_USBMODE));
 
 	tmp = USBMODE_CM_HOST | (pdata->es ? USBMODE_ES : 0);
 	ehci_writel(ehci, tmp, hcd->regs + FSL_SOC_USB_USBMODE);
+#else
+	tmp = USBMODE_CM_HOST | (pdata->es ? USBMODE_ES : 0);
+	ehci_writel(ehci, tmp, hcd->regs + FSL_SOC_USB_USBMODE);
+	printk("tmp %08x  set usbmode %08x\n", tmp,
+		ehci_readl(ehci,  hcd->regs + FSL_SOC_USB_USBMODE));
+
+	ehci_writel(ehci, usb_ehci_portsc, &ehci->regs->port_status[0]);
+	printk("set portsc %08x  %08x\n", usb_ehci_portsc,
+		ehci_readl(ehci,  &ehci->regs->port_status[0]));
+#endif
 
 	set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
 	hcd->state = HC_STATE_RUNNING;