]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: dwc3: support USB 3.1 controllers
authorCaleb Connolly <caleb.connolly@linaro.org>
Tue, 23 Apr 2024 14:15:06 +0000 (16:15 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 11 Aug 2024 17:45:36 +0000 (19:45 +0200)
The revision is different for these, add the additional check as in
xhci-dwc3 core_init code.

Equivalent upstream Linux patch:
690fb3718a70 ("usb: dwc3: Support Synopsys USB 3.1 IP")

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/dwc3/core.c

index c443d56746dd5f342e39b9a982a126b3ddb8462b..a35b8c2f646134f042fff2c2537517880b50eed7 100644 (file)
@@ -594,7 +594,8 @@ static int dwc3_core_init(struct dwc3 *dwc)
 
        reg = dwc3_readl(dwc->regs, DWC3_GSNPSID);
        /* This should read as U3 followed by revision number */
-       if ((reg & DWC3_GSNPSID_MASK) != 0x55330000) {
+       if ((reg & DWC3_GSNPSID_MASK) != 0x55330000 &&
+           (reg & DWC3_GSNPSID_MASK) != 0x33310000) {
                dev_err(dwc->dev, "this is not a DesignWare USB3 DRD Core\n");
                ret = -ENODEV;
                goto err0;