]> git.sur5r.net Git - u-boot/blobdiff - include/fsl_errata.h
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
[u-boot] / include / fsl_errata.h
index aebe3d292585cfdbab51fba749a6b52a3686f75f..88f4268658a1027697d4b24de2281636e54460a8 100644 (file)
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Copyright 2013 - 2015  Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef _FSL_ERRATA_H
@@ -10,7 +9,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 +57,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 */