]> git.sur5r.net Git - u-boot/blobdiff - include/fsl_usb.h
ums: support multiple LUNs at once
[u-boot] / include / fsl_usb.h
index 92751dd827a23ed1f021ede74318aaac5dcda317..187e384305e78625568bd08c9314be70e0206302 100644 (file)
@@ -181,6 +181,7 @@ static inline bool has_erratum_a007792(void)
        switch (soc) {
        case SVR_T4240:
        case SVR_T4160:
+       case SVR_T4080:
                return IS_SVR_REV(svr, 2, 0);
        case SVR_T1024:
        case SVR_T1023:
@@ -196,6 +197,43 @@ static inline bool has_erratum_a007792(void)
        return false;
 }
 
+static inline bool has_erratum_a005697(void)
+{
+       u32 svr = get_svr();
+       u32 soc = SVR_SOC_VER(svr);
+
+       switch (soc) {
+       case SVR_9131:
+       case SVR_9132:
+               return IS_SVR_REV(svr, 1, 0) || IS_SVR_REV(svr, 1, 1);
+       }
+       return false;
+}
+
+static inline bool has_erratum_a004477(void)
+{
+       u32 svr = get_svr();
+       u32 soc = SVR_SOC_VER(svr);
+
+       switch (soc) {
+       case SVR_P1010:
+               return IS_SVR_REV(svr, 1, 0) || IS_SVR_REV(svr, 2, 0);
+       case SVR_P1022:
+       case SVR_9131:
+       case SVR_9132:
+               return IS_SVR_REV(svr, 1, 0) || IS_SVR_REV(svr, 1, 1);
+       case SVR_P2020:
+               return IS_SVR_REV(svr, 1, 0) || IS_SVR_REV(svr, 2, 0) ||
+                       IS_SVR_REV(svr, 2, 1);
+       case SVR_B4860:
+       case SVR_B4420:
+               return IS_SVR_REV(svr, 1, 0) || IS_SVR_REV(svr, 2, 0);
+       case SVR_P4080:
+               return IS_SVR_REV(svr, 2, 0) || IS_SVR_REV(svr, 3, 0);
+       }
+
+       return false;
+}
 #else
 static inline bool has_dual_phy(void)
 {
@@ -221,5 +259,15 @@ static inline bool has_erratum_a007792(void)
 {
        return false;
 }
+
+static inline bool has_erratum_a005697(void)
+{
+       return false;
+}
+
+static inline bool has_erratum_a004477(void)
+{
+       return false;
+}
 #endif
 #endif /*_ASM_FSL_USB_H_ */