summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-09-10 08:51:17 -0400
committerTom Rini <trini@konsulko.com>2019-09-10 08:51:17 -0400
commit3aec234e3f0a35c5d07ae5bb8d4c8dfea4aaf204 (patch)
tree4a2a247a3b47893075f53df1634a47ec7f2be9af
parentc705fc3b40b88bfbf465448643c91da71426df2f (diff)
parentb35b8076828d1059c1fcc648ed8c8210ebe6a3dd (diff)
downloadu-boot-3aec234e3f0a35c5d07ae5bb8d4c8dfea4aaf204.tar.gz
Merge tag 'u-boot-amlogic-20190910' of https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic
- Add support for dis_u2_susphy_quirk in the xhci-dwc3 driver to fix boot when a device is plugged only in the OTG capable port for libretech-ac and libretech-cc
-rw-r--r--drivers/usb/host/xhci-dwc3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c
index 9e8cae7ae4..55a1b22cf6 100644
--- a/drivers/usb/host/xhci-dwc3.c
+++ b/drivers/usb/host/xhci-dwc3.c
@@ -150,6 +150,9 @@ static int xhci_dwc3_probe(struct udevice *dev)
if (dev_read_bool(dev, "snps,dis-u2-freeclk-exists-quirk"))
reg &= ~DWC3_GUSB2PHYCFG_U2_FREECLK_EXISTS;
+ if (dev_read_bool(dev, "snps,dis_u2_susphy_quirk"))
+ reg &= ~DWC3_GUSB2PHYCFG_SUSPHY;
+
writel(reg, &dwc3_reg->g_usb2phycfg[0]);
dr_mode = usb_get_dr_mode(dev_of_offset(dev));