Kumar Gala | 5900ea7 | 2010-06-09 22:59:41 -0500 | [diff] [blame] | 1 | /* |
Jerry Huang | ed41367 | 2011-01-06 23:42:19 -0600 | [diff] [blame] | 2 | * Copyright 2010-2011 Freescale Semiconductor, Inc. |
Kumar Gala | 5900ea7 | 2010-06-09 22:59:41 -0500 | [diff] [blame] | 3 | * |
| 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 | |
| 28 | static 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 Gala | 779a532 | 2010-07-13 00:39:46 -0500 | [diff] [blame] | 44 | #if defined(CONFIG_SYS_P4080_ERRATUM_SERDES8) |
| 45 | puts("Work-around for Erratum SERDES8 enabled\n"); |
| 46 | #endif |
Emil Medve | b01c81f | 2010-08-31 22:57:38 -0500 | [diff] [blame] | 47 | #if defined(CONFIG_SYS_P4080_ERRATUM_SERDES9) |
| 48 | puts("Work-around for Erratum SERDES9 enabled\n"); |
| 49 | #endif |
Timur Tabi | 90f381d | 2011-04-01 13:19:36 -0500 | [diff] [blame] | 50 | #if defined(CONFIG_SYS_P4080_ERRATUM_SERDES_A005) |
| 51 | puts("Work-around for Erratum SERDES-A005 enabled\n"); |
| 52 | #endif |
Kumar Gala | 6b245b9 | 2010-05-05 22:35:27 -0500 | [diff] [blame] | 53 | #if defined(CONFIG_SYS_P4080_ERRATUM_CPU22) |
| 54 | puts("Work-around for Erratum CPU22 enabled\n"); |
| 55 | #endif |
Becky Bruce | 4212f23 | 2010-12-17 17:17:58 -0600 | [diff] [blame] | 56 | #if defined(CONFIG_SYS_FSL_ERRATUM_DDR_MSYNC_IN) |
| 57 | puts("Work-around for DDR MSYNC_IN Erratum enabled\n"); |
| 58 | #endif |
Jerry Huang | ed41367 | 2011-01-06 23:42:19 -0600 | [diff] [blame] | 59 | #if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC111) |
| 60 | puts("Work-around for Erratum ESDHC111 enabled\n"); |
| 61 | #endif |
Roy Zang | 3935661 | 2011-01-07 00:06:47 -0600 | [diff] [blame] | 62 | #if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC135) |
| 63 | puts("Work-around for Erratum ESDHC135 enabled\n"); |
| 64 | #endif |
Roy Zang | c65dc4d | 2011-01-07 00:24:27 -0600 | [diff] [blame] | 65 | #if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC136) |
| 66 | puts("Work-around for Erratum ESDHC136 enabled\n"); |
| 67 | #endif |
Kumar Gala | 9a878d5 | 2011-01-29 15:36:10 -0600 | [diff] [blame] | 68 | #if defined(CONFIG_SYS_FSL_ERRATUM_ESDHC_A001) |
| 69 | puts("Work-around for Erratum ESDHC-A001 enabled\n"); |
| 70 | #endif |
Kumar Gala | 9780b59 | 2011-01-13 01:54:01 -0600 | [diff] [blame] | 71 | #ifdef CONFIG_SYS_FSL_ERRATUM_CPC_A002 |
| 72 | puts("Work-around for Erratum CPC-A002 enabled\n"); |
| 73 | #endif |
Kumar Gala | 887c0e1 | 2011-01-13 01:56:18 -0600 | [diff] [blame] | 74 | #ifdef CONFIG_SYS_FSL_ERRATUM_CPC_A003 |
| 75 | puts("Work-around for Erratum CPC-A003 enabled\n"); |
| 76 | #endif |
Kumar Gala | 77b37af | 2011-01-13 02:58:23 -0600 | [diff] [blame] | 77 | #ifdef CONFIG_SYS_FSL_ERRATUM_ELBC_A001 |
| 78 | puts("Work-around for Erratum ELBC-A001 enabled\n"); |
| 79 | #endif |
York Sun | 922f40f | 2011-01-10 12:03:01 +0000 | [diff] [blame] | 80 | #ifdef CONFIG_SYS_FSL_ERRATUM_DDR_A003 |
| 81 | puts("Work-around for Erratum DDR-A003 enabled\n"); |
| 82 | #endif |
York Sun | 9aa857b | 2011-01-25 21:51:27 -0800 | [diff] [blame] | 83 | #ifdef CONFIG_SYS_FSL_ERRATUM_DDR_115 |
| 84 | puts("Work-around for Erratum DDR115 enabled\n"); |
| 85 | #endif |
York Sun | c8fc959 | 2011-01-25 22:05:49 -0800 | [diff] [blame] | 86 | #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 |
Poonam Aggrwal | c7664a4 | 2011-06-30 03:00:28 -0500 | [diff] [blame] | 90 | #ifdef CONFIG_SYS_FSL_ERRATUM_IFC_A002769 |
| 91 | puts("Work-around for Erratum IFC-A002769 enabled\n"); |
| 92 | #endif |
Poonam Aggrwal | af54a5f | 2011-06-29 16:32:52 +0530 | [diff] [blame] | 93 | #ifdef CONFIG_SYS_FSL_ERRATUM_P1010_A003549 |
| 94 | puts("Work-around for Erratum P1010-A003549 enabled\n"); |
| 95 | #endif |
Poonam Aggrwal | 46b86ca | 2011-07-07 20:36:47 +0530 | [diff] [blame] | 96 | #ifdef CONFIG_SYS_FSL_ERRATUM_IFC_A003399 |
| 97 | puts("Work-around for Erratum IFC A-003399 enabled\n"); |
| 98 | #endif |
Kumar Gala | 866c6fa | 2011-09-16 09:54:30 -0500 | [diff] [blame] | 99 | #ifdef CONFIG_SYS_FSL_ERRATUM_NMG_DDR120 |
| 100 | if ((SVR_MAJ(svr) == 1) || IS_SVR_REV(svr, 2, 0)) |
| 101 | puts("Work-around for Erratum NMG DDR120 enabled\n"); |
| 102 | #endif |
Kumar Gala | f3339d6 | 2011-10-03 08:37:57 -0500 | [diff] [blame] | 103 | #ifdef CONFIG_SYS_FSL_ERRATUM_NMG_LBC103 |
| 104 | puts("Work-around for Erratum NMG_LBC103 enabled\n"); |
| 105 | #endif |
Kumar Gala | 5900ea7 | 2010-06-09 22:59:41 -0500 | [diff] [blame] | 106 | return 0; |
| 107 | } |
| 108 | |
| 109 | U_BOOT_CMD( |
| 110 | errata, 1, 0, do_errata, |
| 111 | "Report errata workarounds", |
| 112 | "" |
| 113 | ); |