]> git.sur5r.net Git - u-boot/blobdiff - include/fsl_errata.h
flash: Fix spelling of "ERR_TIMOUT"
[u-boot] / include / fsl_errata.h
index aebe3d292585cfdbab51fba749a6b52a3686f75f..89051aa7412a6d233cdd9b7d958e681b296487b3 100644 (file)
@@ -10,7 +10,7 @@
 #include <common.h>
 #if defined(CONFIG_PPC)
 #include <asm/processor.h>
-#elif defined(CONFIG_LS102XA)
+#elif defined(CONFIG_ARCH_LS1021A)
 #include <asm/arch-ls102xa/immap_ls102xa.h>
 #elif defined(CONFIG_FSL_LAYERSCAPE)
 #include <asm/arch/soc.h>
@@ -58,4 +58,35 @@ static inline bool has_erratum_a007186(void)
 }
 #endif
 
+#ifdef CONFIG_SYS_FSL_ERRATUM_A008378
+static inline bool has_erratum_a008378(void)
+{
+       u32 svr = get_svr();
+       u32 soc = SVR_SOC_VER(svr);
+
+
+       switch (soc) {
+#ifdef CONFIG_ARCH_LS1021A
+       case SOC_VER_LS1020:
+       case SOC_VER_LS1021:
+       case SOC_VER_LS1022:
+       case SOC_VER_SLS1020:
+               return IS_SVR_REV(svr, 1, 0);
+#endif
+#ifdef CONFIG_PPC
+       case SVR_T1023:
+       case SVR_T1024:
+               return IS_SVR_REV(svr, 1, 0);
+       case SVR_T1020:
+       case SVR_T1022:
+       case SVR_T1040:
+       case SVR_T1042:
+               return IS_SVR_REV(svr, 1, 0) || IS_SVR_REV(svr, 1, 1);
+#endif
+       default:
+               return false;
+       }
+}
+#endif
+
 #endif /*  _FSL_ERRATA_H */