2 * Copyright 2010-2011 Freescale Semiconductor, Inc.
4 * See file CREDITS for list of people who contributed to this
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 #include <linux/compiler.h>
26 #include <asm/processor.h>
28 static int do_errata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
30 __maybe_unused u32 svr = get_svr();
32 #if defined(CONFIG_FSL_SATA_V2) && defined(CONFIG_FSL_SATA_ERRATUM_A001)
33 if (IS_SVR_REV(svr, 1, 0)) {
34 switch (SVR_SOC_VER(svr)) {
39 puts("Work-around for Erratum SATA A001 enabled\n");
44 #if defined(CONFIG_SYS_P4080_ERRATUM_SERDES8)
45 puts("Work-around for Erratum SERDES8 enabled\n");
47 #if defined(CONFIG_SYS_P4080_ERRATUM_CPU22)
48 puts("Work-around for Erratum CPU22 enabled\n");
50 #if defined(CONFIG_SYS_FSL_ERRATUM_DDR_MSYNC_IN)
51 puts("Work-around for DDR MSYNC_IN Erratum enabled\n");
53 #if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC111)
54 puts("Work-around for Erratum ESDHC111 enabled\n");
56 #if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC135)
57 puts("Work-around for Erratum ESDHC135 enabled\n");
59 #if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC136)
60 puts("Work-around for Erratum ESDHC136 enabled\n");
62 #if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC_A001)
63 puts("Work-around for Erratum ESDHC-A001 enabled\n");
65 #ifdef CONFIG_SYS_FSL_ERRATUM_CPC_A002
66 puts("Work-around for Erratum CPC-A002 enabled\n");
68 #ifdef CONFIG_SYS_FSL_ERRATUM_CPC_A003
69 puts("Work-around for Erratum CPC-A003 enabled\n");
71 #ifdef CONFIG_SYS_FSL_ERRATUM_ELBC_A001
72 puts("Work-around for Erratum ELBC-A001 enabled\n");
74 #ifdef CONFIG_SYS_FSL_ERRATUM_DDR_A003
75 puts("Work-around for Erratum DDR-A003 enabled\n");
77 #ifdef CONFIG_SYS_FSL_ERRATUM_DDR_115
78 puts("Work-around for Erratum DDR115 enabled\n");
80 #ifdef CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
81 puts("Work-around for Erratum DDR111 enabled\n");
82 puts("Work-around for Erratum DDR134 enabled\n");
88 errata, 1, 0, do_errata,
89 "Report errata workarounds",