Merge branch 'master' of git://www.denx.de/git/u-boot-socfpga
[oweals/u-boot.git] / include / fsl_usb.h
index d24ffa7fca55c575b333c9e7d7b9974809855b5c..33d9f030960c27117e754ec49b51390e8ad2936a 100644 (file)
@@ -182,8 +182,13 @@ static inline bool has_erratum_a007792(void)
        case SVR_T4240:
        case SVR_T4160:
                return IS_SVR_REV(svr, 2, 0);
-       case SVR_T1040:
+       case SVR_T1024:
+       case SVR_T1023:
                return IS_SVR_REV(svr, 1, 0);
+       case SVR_T1040:
+       case SVR_T1042:
+       case SVR_T1020:
+       case SVR_T1022:
        case SVR_T2080:
        case SVR_T2081:
                return IS_SVR_REV(svr, 1, 0) || IS_SVR_REV(svr, 1, 1);
@@ -191,6 +196,19 @@ 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;
+}
+
 #else
 static inline bool has_dual_phy(void)
 {
@@ -216,5 +234,10 @@ static inline bool has_erratum_a007792(void)
 {
        return false;
 }
+
+static inline bool has_erratum_a005697(void)
+{
+       return false;
+}
 #endif
 #endif /*_ASM_FSL_USB_H_ */