]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/usb/host/ehci-fsl.c
drivers: usb: fsl: Check USB Erratum A007792 applicability
[people/ms/u-boot.git] / drivers / usb / host / ehci-fsl.c
index 61cd16840a98b65c0d374ef8d4b84fd44c2bdb57..5d4288d38f086c7967f8388bde7bf8423afdcc47 100644 (file)
@@ -262,6 +262,7 @@ void fdt_fixup_dr_usb(void *blob, bd_t *bd)
        static const char * const phys[] = { "ulpi", "utmi" };
        int usb_erratum_a006261_off = -1;
        int usb_erratum_a007075_off = -1;
+       int usb_erratum_a007792_off = -1;
        int usb_mode_off = -1;
        int usb_phy_off = -1;
        char str[5];
@@ -332,6 +333,14 @@ void fdt_fixup_dr_usb(void *blob, bd_t *bd)
                        if (usb_erratum_a007075_off < 0)
                                return;
                }
+               if (has_erratum_a007792()) {
+                       usb_erratum_a007792_off =  fdt_fixup_usb_erratum
+                                                  (blob,
+                                                   "fsl,usb-erratum-a007792",
+                                                   usb_erratum_a007792_off);
+                       if (usb_erratum_a007792_off < 0)
+                               return;
+               }
        }
 }
 #endif