]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/host/dwc2.c
usb: ehci-marvell: Drop wrl accessor function
[u-boot] / drivers / usb / host / dwc2.c
index 2ac00177a20c1b3b00da029d251388939b1e0930..eee60a2b039a247b8c1282d1c2e92294a2377ae8 100644 (file)
@@ -932,7 +932,8 @@ int usb_lowlevel_init(int index, enum usb_init_type init, void **controller)
        snpsid = readl(&regs->gsnpsid);
        printf("Core Release: %x.%03x\n", snpsid >> 12 & 0xf, snpsid & 0xfff);
 
-       if ((snpsid & DWC2_SNPSID_DEVID_MASK) != DWC2_SNPSID_DEVID_VER_2xx) {
+       if ((snpsid & DWC2_SNPSID_DEVID_MASK) != DWC2_SNPSID_DEVID_VER_2xx &&
+           (snpsid & DWC2_SNPSID_DEVID_MASK) != DWC2_SNPSID_DEVID_VER_3xx) {
                printf("SNPSID invalid (not DWC2 OTG device): %08x\n", snpsid);
                return -ENODEV;
        }