summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajesh Bhagat <rajesh.bhagat@freescale.com>2015-11-20 07:15:31 (GMT)
committerRajesh Bhagat <rajesh.bhagat@freescale.com>2015-11-20 07:15:31 (GMT)
commit56afee9a0c0065d0359aa801f5bd33389bfbb2ee (patch)
treec3beaedf6a78295fa4dc1139e56134eddc3d2a93
parent3f833069eba8c37974a42970490c1a35b1511689 (diff)
downloadlinux-fsl-qoriq-56afee9a0c0065d0359aa801f5bd33389bfbb2ee.tar.xz
drivers: dwc3 : Add support for USB snooping
Add support for USB3 snooping by asserting bits in register DWC3_GSBUSCFG0 for data and descriptor Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@freescale.com>
-rw-r--r--drivers/usb/dwc3/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 1f81243..736f79a 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -500,6 +500,10 @@ static int dwc3_probe(struct platform_device *pdev)
dwc3_writel(dwc->regs, DWC3_GSBUSCFG1,
dwc3_readl(dwc->regs, DWC3_GSBUSCFG1) | 0xf00);
+ /* Enable Snooping */
+ dwc3_writel(dwc->regs, DWC3_GSBUSCFG0,
+ dwc3_readl(dwc->regs, DWC3_GSBUSCFG0) | 0x22220000);
+
if (IS_ENABLED(CONFIG_USB_DWC3_HOST))
dwc->dr_mode = USB_DR_MODE_HOST;
else if (IS_ENABLED(CONFIG_USB_DWC3_GADGET))