]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/powerpc/include/asm/fsl_errata.h
powerpc/mpc85xx: modify erratum A007186
[karo-tx-uboot.git] / arch / powerpc / include / asm / fsl_errata.h
index b9e2fb00fa158c17c0dded28416bf0323e8cf5bc..61c6d70c4b71556a188048266a22e82c399d12be 100644 (file)
@@ -27,3 +27,27 @@ static inline bool has_erratum_a006379(void)
 }
 #endif
 #endif
+
+#ifdef CONFIG_SYS_FSL_ERRATUM_A007186
+static inline bool has_erratum_a007186(void)
+{
+       u32 svr = get_svr();
+       u32 soc = SVR_SOC_VER(svr);
+
+       switch (soc) {
+       case SVR_T4240:
+               return IS_SVR_REV(svr, 2, 0);
+       case SVR_T4160:
+               return IS_SVR_REV(svr, 2, 0);
+       case SVR_B4860:
+               return IS_SVR_REV(svr, 2, 0);
+       case SVR_B4420:
+               return IS_SVR_REV(svr, 2, 0);
+       case SVR_T2081:
+       case SVR_T2080:
+               return IS_SVR_REV(svr, 1, 0);
+       }
+
+       return false;
+}
+#endif