Merge tag 'u-boot-amlogic-20190910' of https://gitlab.denx.de/u-boot/custodians/u...
authorTom Rini <trini@konsulko.com>
Tue, 10 Sep 2019 12:51:17 +0000 (08:51 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 10 Sep 2019 12:51:17 +0000 (08:51 -0400)
- 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

drivers/usb/host/xhci-dwc3.c

index 9e8cae7ae4439011631ff87ed3b23d788e20aa26..55a1b22cf68a031bc7b6f968af23769260ccd197 100644 (file)
@@ -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));