]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - include/fsl_errata.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2013 - 2015 Freescale Semiconductor, Inc.
10 #if defined(CONFIG_PPC)
11 #include <asm/processor.h>
12 #elif defined(CONFIG_ARCH_LS1021A)
13 #include <asm/arch-ls102xa/immap_ls102xa.h>
14 #elif defined(CONFIG_FSL_LAYERSCAPE)
15 #include <asm/arch/soc.h>
19 #ifdef CONFIG_SYS_FSL_ERRATUM_A006379
20 static inline bool has_erratum_a006379(void)
23 if (((SVR_SOC_VER(svr
) == SVR_T4240
) && SVR_MAJ(svr
) <= 1) ||
24 ((SVR_SOC_VER(svr
) == SVR_T4160
) && SVR_MAJ(svr
) <= 1) ||
25 ((SVR_SOC_VER(svr
) == SVR_T4080
) && SVR_MAJ(svr
) <= 1) ||
26 ((SVR_SOC_VER(svr
) == SVR_B4860
) && SVR_MAJ(svr
) <= 2) ||
27 ((SVR_SOC_VER(svr
) == SVR_B4420
) && SVR_MAJ(svr
) <= 2) ||
28 ((SVR_SOC_VER(svr
) == SVR_T2080
) && SVR_MAJ(svr
) <= 1) ||
29 ((SVR_SOC_VER(svr
) == SVR_T2081
) && SVR_MAJ(svr
) <= 1))
36 #ifdef CONFIG_SYS_FSL_ERRATUM_A007186
37 static inline bool has_erratum_a007186(void)
40 u32 soc
= SVR_SOC_VER(svr
);
44 return IS_SVR_REV(svr
, 2, 0);
46 return IS_SVR_REV(svr
, 2, 0);
48 return IS_SVR_REV(svr
, 2, 0);
50 return IS_SVR_REV(svr
, 2, 0);
53 return IS_SVR_REV(svr
, 1, 0) || IS_SVR_REV(svr
, 1, 1);
60 #ifdef CONFIG_SYS_FSL_ERRATUM_A008378
61 static inline bool has_erratum_a008378(void)
64 u32 soc
= SVR_SOC_VER(svr
);
68 #ifdef CONFIG_ARCH_LS1021A
73 return IS_SVR_REV(svr
, 1, 0);
78 return IS_SVR_REV(svr
, 1, 0);
83 return IS_SVR_REV(svr
, 1, 0) || IS_SVR_REV(svr
, 1, 1);
91 #endif /* _FSL_ERRATA_H */