blob: 7b9f77362c4af7f7e2f6ad3f69a30c7d39ff92c5 [file] [log] [blame]
Kumar Gala5900ea72010-06-09 22:59:41 -05001/*
Jerry Huanged413672011-01-06 23:42:19 -06002 * Copyright 2010-2011 Freescale Semiconductor, Inc.
Kumar Gala5900ea72010-06-09 22:59:41 -05003 *
4 * See file CREDITS for list of people who contributed to this
5 * project.
6 *
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.
11 *
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.
16 *
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,
20 * MA 02111-1307 USA
21 */
22
23#include <common.h>
24#include <command.h>
25#include <linux/compiler.h>
26#include <asm/processor.h>
27
28static int do_errata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
29{
30 __maybe_unused u32 svr = get_svr();
31
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)) {
35 case SVR_P1013:
36 case SVR_P1013_E:
37 case SVR_P1022:
38 case SVR_P1022_E:
39 puts("Work-around for Erratum SATA A001 enabled\n");
40 }
41 }
42#endif
43
Kumar Gala779a5322010-07-13 00:39:46 -050044#if defined(CONFIG_SYS_P4080_ERRATUM_SERDES8)
45 puts("Work-around for Erratum SERDES8 enabled\n");
46#endif
Emil Medveb01c81f2010-08-31 22:57:38 -050047#if defined(CONFIG_SYS_P4080_ERRATUM_SERDES9)
48 puts("Work-around for Erratum SERDES9 enabled\n");
49#endif
Timur Tabi90f381d2011-04-01 13:19:36 -050050#if defined(CONFIG_SYS_P4080_ERRATUM_SERDES_A005)
51 puts("Work-around for Erratum SERDES-A005 enabled\n");
52#endif
Kumar Gala6b245b92010-05-05 22:35:27 -050053#if defined(CONFIG_SYS_P4080_ERRATUM_CPU22)
54 puts("Work-around for Erratum CPU22 enabled\n");
55#endif
Becky Bruce4212f232010-12-17 17:17:58 -060056#if defined(CONFIG_SYS_FSL_ERRATUM_DDR_MSYNC_IN)
57 puts("Work-around for DDR MSYNC_IN Erratum enabled\n");
58#endif
Jerry Huanged413672011-01-06 23:42:19 -060059#if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC111)
60 puts("Work-around for Erratum ESDHC111 enabled\n");
61#endif
Roy Zang39356612011-01-07 00:06:47 -060062#if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC135)
63 puts("Work-around for Erratum ESDHC135 enabled\n");
64#endif
Roy Zangc65dc4d2011-01-07 00:24:27 -060065#if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC136)
66 puts("Work-around for Erratum ESDHC136 enabled\n");
67#endif
Kumar Gala9a878d52011-01-29 15:36:10 -060068#if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC_A001)
69 puts("Work-around for Erratum ESDHC-A001 enabled\n");
70#endif
Kumar Gala9780b592011-01-13 01:54:01 -060071#ifdef CONFIG_SYS_FSL_ERRATUM_CPC_A002
72 puts("Work-around for Erratum CPC-A002 enabled\n");
73#endif
Kumar Gala887c0e12011-01-13 01:56:18 -060074#ifdef CONFIG_SYS_FSL_ERRATUM_CPC_A003
75 puts("Work-around for Erratum CPC-A003 enabled\n");
76#endif
Kumar Gala77b37af2011-01-13 02:58:23 -060077#ifdef CONFIG_SYS_FSL_ERRATUM_ELBC_A001
78 puts("Work-around for Erratum ELBC-A001 enabled\n");
79#endif
York Sun922f40f2011-01-10 12:03:01 +000080#ifdef CONFIG_SYS_FSL_ERRATUM_DDR_A003
81 puts("Work-around for Erratum DDR-A003 enabled\n");
82#endif
York Sun9aa857b2011-01-25 21:51:27 -080083#ifdef CONFIG_SYS_FSL_ERRATUM_DDR_115
84 puts("Work-around for Erratum DDR115 enabled\n");
85#endif
York Sunc8fc9592011-01-25 22:05:49 -080086#ifdef CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
87 puts("Work-around for Erratum DDR111 enabled\n");
88 puts("Work-around for Erratum DDR134 enabled\n");
89#endif
Kumar Gala5900ea72010-06-09 22:59:41 -050090 return 0;
91}
92
93U_BOOT_CMD(
94 errata, 1, 0, do_errata,
95 "Report errata workarounds",
96 ""
97);