]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: Migrate errata to Kconfig
authorTom Rini <trini@konsulko.com>
Tue, 7 Mar 2017 12:13:42 +0000 (07:13 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 10 Mar 2017 00:52:50 +0000 (19:52 -0500)
This moves all of the current ARM errata from various header files and in to
Kconfig.  This allows for a minor amount of cleanup as we had some instances
where both a general common header file was enabling errata as well as the
board config.  We now just select these once at the higher level in Kconfig

Signed-off-by: Tom Rini <trini@konsulko.com>
25 files changed:
README
arch/arm/Kconfig
arch/arm/cpu/armv7/mx6/Kconfig
arch/arm/cpu/armv8/fsl-layerscape/Kconfig
arch/arm/include/asm/arch-fsl-layerscape/config.h
arch/arm/mach-exynos/Kconfig
arch/arm/mach-tegra/Kconfig
include/configs/am3517_crane.h
include/configs/am3517_evm.h
include/configs/arndale.h
include/configs/cm_t35.h
include/configs/cm_t3517.h
include/configs/mcx.h
include/configs/mx6_common.h
include/configs/nokia_rx51.h
include/configs/omap3_evm.h
include/configs/sniper.h
include/configs/tam3517-common.h
include/configs/tao3530.h
include/configs/tegra20-common.h
include/configs/tegra30-common.h
include/configs/ti_omap3_common.h
include/configs/ti_omap5_common.h
include/configs/tricorder.h
scripts/config_whitelist.txt

diff --git a/README b/README
index 4f0dbd4fca6ddc94aa26e874be54231089fc79a0..3174b18d9a894737bccd47c0aaa1943ed4c974bb 100644 (file)
--- a/README
+++ b/README
@@ -600,21 +600,6 @@ The following options need to be configured:
                Thumb2 this flag will result in Thumb2 code generated by
                GCC.
 
-               CONFIG_ARM_ERRATA_716044
-               CONFIG_ARM_ERRATA_742230
-               CONFIG_ARM_ERRATA_743622
-               CONFIG_ARM_ERRATA_751472
-               CONFIG_ARM_ERRATA_761320
-               CONFIG_ARM_ERRATA_773022
-               CONFIG_ARM_ERRATA_774769
-               CONFIG_ARM_ERRATA_794072
-
-               If set, the workarounds for these ARM errata are applied early
-               during U-Boot startup. Note that these options force the
-               workarounds to be applied; no CPU-type/version detection
-               exists, unlike the similar options in the Linux kernel. Do not
-               set these options unless they apply!
-
                COUNTER_FREQUENCY
                Generic timer clock source frequency.
 
@@ -623,15 +608,6 @@ The following options need to be configured:
                different from COUNTER_FREQUENCY, and can only be determined
                at run time.
 
-               NOTE: The following can be machine specific errata. These
-               do have ability to provide rudimentary version and machine
-               specific checks, but expect no product checks.
-               CONFIG_ARM_ERRATA_430973
-               CONFIG_ARM_ERRATA_454179
-               CONFIG_ARM_ERRATA_621766
-               CONFIG_ARM_ERRATA_798870
-               CONFIG_ARM_ERRATA_801819
-
 - Tegra SoC options:
                CONFIG_TEGRA_SUPPORT_NON_SECURE
 
index 7022e2af847e5740c379bba5b22afad82a693324..0a05662e7cec6b9f212cd1e2b4a7435d4668495d 100644 (file)
@@ -19,6 +19,72 @@ config HAS_VBAR
 config HAS_THUMB2
        bool
 
+# If set, the workarounds for these ARM errata are applied early during U-Boot
+# startup. Note that in general these options force the workarounds to be
+# applied; no CPU-type/version detection exists, unlike the similar options in
+# the Linux kernel. Do not set these options unless they apply!  Also note that
+# the following can be machine specific errata. These do have ability to
+# provide rudimentary version and machine specific checks, but expect no
+# product checks:
+# CONFIG_ARM_ERRATA_430973
+# CONFIG_ARM_ERRATA_454179
+# CONFIG_ARM_ERRATA_621766
+# CONFIG_ARM_ERRATA_798870
+# CONFIG_ARM_ERRATA_801819
+config ARM_ERRATA_430973
+       bool
+
+config ARM_ERRATA_454179
+       bool
+
+config ARM_ERRATA_621766
+       bool
+
+config ARM_ERRATA_716044
+       bool
+
+config ARM_ERRATA_742230
+       bool
+
+config ARM_ERRATA_743622
+       bool
+
+config ARM_ERRATA_751472
+       bool
+
+config ARM_ERRATA_761320
+       bool
+
+config ARM_ERRATA_773022
+       bool
+
+config ARM_ERRATA_774769
+       bool
+
+config ARM_ERRATA_794072
+       bool
+
+config ARM_ERRATA_798870
+       bool
+
+config ARM_ERRATA_801819
+       bool
+
+config ARM_ERRATA_826974
+       bool
+
+config ARM_ERRATA_828024
+       bool
+
+config ARM_ERRATA_829520
+       bool
+
+config ARM_ERRATA_833069
+       bool
+
+config ARM_ERRATA_833471
+       bool
+
 config CPU_ARM720T
        bool
        select SYS_CACHE_SHIFT_5
@@ -569,6 +635,9 @@ config TARGET_MX53SMD
 config OMAP34XX
        bool "OMAP34XX SoC"
        select ARCH_OMAP2
+       select ARM_ERRATA_430973
+       select ARM_ERRATA_454179
+       select ARM_ERRATA_621766
        select USE_TINY_PRINTF
        imply SPL_EXT_SUPPORT
        imply SPL_FAT_SUPPORT
@@ -602,6 +671,7 @@ config OMAP44XX
 config OMAP54XX
        bool "OMAP54XX SoC"
        select ARCH_OMAP2
+       select ARM_ERRATA_798870
        imply SPL_DISPLAY_PRINT
        imply SPL_ENV_SUPPORT
        imply SPL_EXT_SUPPORT
index 19cc1f671f57f1b70d7f65ce76501c5b9a365ee7..744d67ab8628fe98a5cc051e9331c472ecbfe329 100644 (file)
@@ -3,6 +3,10 @@ if ARCH_MX6
 config MX6
        bool
        default y
+       select ARM_ERRATA_743622 if !MX6UL
+       select ARM_ERRATA_751472 if !MX6UL
+       select ARM_ERRATA_761320 if !MX6UL
+       select ARM_ERRATA_794072 if !MX6UL
 
 config MX6D
        bool
index adccdf15eb09ce8ea7dfcfc0a0fc5c4e7b621a0b..b5609ff7a67f018de78f622c99ab4f7d1fd7d9d9 100644 (file)
@@ -49,6 +49,10 @@ config ARCH_LS1046A
 config ARCH_LS2080A
        bool
        select ARMV8_SET_SMPEN
+       select ARM_ERRATA_826974
+       select ARM_ERRATA_828024
+       select ARM_ERRATA_829520
+       select ARM_ERRATA_833471
        select FSL_LSCH3
        select SYS_FSL_DDR
        select SYS_FSL_DDR_LE
index 83f55016124239f8e7fdacccfe7af7534035876d..586ce17215291a0c8c9a969ae0d26fb1d7c975ad 100644 (file)
 
 #define CONFIG_SYS_FSL_ERRATUM_A008751
 
-/* ARM A57 CORE ERRATA */
-#define CONFIG_ARM_ERRATA_826974
-#define CONFIG_ARM_ERRATA_828024
-#define CONFIG_ARM_ERRATA_829520
-#define CONFIG_ARM_ERRATA_833471
-
 #define CONFIG_SYS_FSL_MAX_NUM_OF_SEC          1
 #elif defined(CONFIG_FSL_LSCH2)
 #define CONFIG_SYS_FSL_OCRAM_BASE              0x10000000 /* initial RAM */
index 9bd8ba5eea8a5e736f460e68e6a036ba56b51f7f..46981a5933b23e237a912dca9b9726c629324afe 100644 (file)
@@ -82,6 +82,8 @@ config TARGET_ODROID_XU3
 
 config TARGET_ARNDALE
        bool "Exynos5250 Arndale board"
+       select ARM_ERRATA_773022
+       select ARM_ERRATA_774769
        select CPU_V7_HAS_NONSEC
        select CPU_V7_HAS_VIRT
        select SUPPORT_SPL
index c9f2380f4d9b2954df5dedc491216e1dba5abc7e..c67ffa5a2356c08a776a5a9001c2dbd5ad685f10 100644 (file)
@@ -65,10 +65,15 @@ choice
 
 config TEGRA20
        bool "Tegra20 family"
+       select ARM_ERRATA_716044
+       select ARM_ERRATA_742230
+       select ARM_ERRATA_751472
        select TEGRA_ARMV7_COMMON
 
 config TEGRA30
        bool "Tegra30 family"
+       select ARM_ERRATA_743622
+       select ARM_ERRATA_751472
        select TEGRA_ARMV7_COMMON
 
 config TEGRA114
index 18938bf7dcf4e59cd049c28fe3a57908c585225c..94087593e1fa59ce2f752aed1bbc093920b5c5ca 100644 (file)
  */
 #define CONFIG_OMAP            1       /* in a TI OMAP core */
 #define CONFIG_OMAP3_AM3517CRANE       1       /* working with CRANEBOARD */
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
 
 #define CONFIG_EMIF4   /* The chip has EMIF4 controller */
 
index c98c663dc1818460703e0fcbd43555df978ae803..f1584e4f5ce4d2753be832227f4aef317bf164dd 100644 (file)
 
 #define CONFIG_NR_DRAM_BANKS   2       /* CS1 may or may not be populated */
 
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
-
 #define CONFIG_EMIF4   /* The chip has EMIF4 controller */
 
 /*
index 74fd9c422730e8d83d99e0c949b144e5475a4620..e6f2422f03d439cdabf459e08777da3ab56a30bd 100644 (file)
 /* The PERIPHBASE in the CBAR register is wrong on the Arndale, so override it */
 #define CONFIG_ARM_GIC_BASE_ADDRESS    0x10480000
 
-/* CPU Errata */
-#define CONFIG_ARM_ERRATA_773022
-#define CONFIG_ARM_ERRATA_774769
-
 /* Power */
 #define CONFIG_POWER
 #define CONFIG_POWER_I2C
index d244824f9cdda59527d08c243c0ae5948a00bedc..e8b79a256baf79b17f270bcc58283f846a0cff48 100644 (file)
 #define CONFIG_OMAP    /* in a TI OMAP core */
 #define CONFIG_OMAP_GPIO
 #define CONFIG_CM_T3X  /* working with CM-T35 and CM-T3730 */
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
 
 #define CONFIG_SDRC    /* The chip has SDRC controller */
 
index bfd3b50f40659a5b78cef1d1f986329def8ec57a..c179a2b5b821d18378400b28cbd6763c912941c6 100644 (file)
  */
 #define CONFIG_OMAP    /* in a TI OMAP core */
 #define CONFIG_CM_T3517        /* working with CM-T3517 */
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
 
 #define CONFIG_SYS_TEXT_BASE   0x80008000
 
index ef44110ee641d415e6a3ab6cb962310cb4867e8f..06c1a9543baa6c1ba185623f1fb5b13272e9d648 100644 (file)
 #define CONFIG_OMAP                    /* in a TI OMAP core */
 #define CONFIG_OMAP3_MCX               /* working with mcx */
 #define CONFIG_OMAP_GPIO
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
 
 #define CONFIG_MACH_TYPE       MACH_TYPE_MCX
 
index cd52557ba8f353dbdcb3f1c0662272f173ad11cd..afe9b9340e987db3e141352bfc00a4dbf685c4fe 100644 (file)
@@ -8,11 +8,6 @@
 #define __MX6_COMMON_H
 
 #ifndef CONFIG_MX6UL
-#define CONFIG_ARM_ERRATA_743622
-#define CONFIG_ARM_ERRATA_751472
-#define CONFIG_ARM_ERRATA_794072
-#define CONFIG_ARM_ERRATA_761320
-
 #ifndef CONFIG_SYS_L2CACHE_OFF
 #define CONFIG_SYS_L2_PL310
 #define CONFIG_SYS_PL310_BASE  L2_PL310_BASE
index e17c3c0a1d53a17b38f54b3f3a51b7e43d5e15e0..5b0cb2ef50d0a93750d2c65c32d9c782aa84f589 100644 (file)
 #define CONFIG_OMAP3430                        /* which is in a 3430 */
 #define CONFIG_OMAP3_RX51              /* working with RX51 */
 #define CONFIG_SYS_L2CACHE_OFF         /* pretend there is no L2 CACHE */
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
 
 #define CONFIG_MACH_TYPE               MACH_TYPE_NOKIA_RX51
 
index 6a57ebdd111134698828e2c6a7bfe8ec24dae8cf..a28f9ba8f4362f7c23277fca4d876622b8e05f05 100644 (file)
  */
 #define CONFIG_OMAP                    /* This is TI OMAP core */
 #define CONFIG_OMAP_GPIO
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
 
 #define CONFIG_SDRC                    /* The chip has SDRC controller */
 
index fb28dcd687e4b4acf329cf12508a8e05739398e2..83fa6e053df62e278a1eaa660fc096bdfe8e2209 100644 (file)
@@ -17,9 +17,6 @@
  */
 
 #define CONFIG_ARM_ARCH_CP15_ERRATA
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
 
 /*
  * Platform
index 87b5315e5620c115e247f8496f33f94cdb723a50..2704319070a8ce5917190b83a07bce8e7ff3997e 100644 (file)
  */
 #define CONFIG_OMAP            /* in a TI OMAP core */
 #define CONFIG_OMAP_GPIO
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
 
 #define CONFIG_SYS_TEXT_BASE 0x80008000
 
index 89d2e6bb5dbea9a0601cd46e278bf6fcbb028afb..ead8ea76e8e946b9800b97664efbb10044b4f2bc 100644 (file)
 #define CONFIG_OMAP                    /* in a TI OMAP core */
 
 #define CONFIG_OMAP_GPIO
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
 
 #define CONFIG_SDRC                    /* Has an SDRC controller */
 
index 793310ff473d3d119989688254262711c3667140..db1cc248f45baf102967891b00978f9863e19079 100644 (file)
@@ -9,13 +9,6 @@
 #define _TEGRA20_COMMON_H_
 #include "tegra-common.h"
 
-/*
- * Errata configuration
- */
-#define CONFIG_ARM_ERRATA_716044
-#define CONFIG_ARM_ERRATA_742230
-#define CONFIG_ARM_ERRATA_751472
-
 /*
  * NS16550 Configuration
  */
index baf3d00f34ba5272937ac657fed3339506791507..60838474a6398b6aca2ef1b4cd93566b6cccfde8 100644 (file)
@@ -9,12 +9,6 @@
 #define _TEGRA30_COMMON_H_
 #include "tegra-common.h"
 
-/*
- * Errata configuration
- */
-#define CONFIG_ARM_ERRATA_743622
-#define CONFIG_ARM_ERRATA_751472
-
 /*
  * NS16550 Configuration
  */
index 0ad32353bae25aed3210caeb0b0fc78171be004c..0147662f443dd9719d2904e7d7ef2b222d3041ac 100644 (file)
 #include <asm/arch/cpu.h>
 #include <asm/arch/omap.h>
 
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
-
 /* The chip has SDRC controller */
 #define CONFIG_SDRC
 
index 37d65653a53b325297e5c8c4d6e6fdd82659299b..7fb1bb60df0bf739fba1cc785ac4cd7c24461741 100644 (file)
@@ -17,9 +17,6 @@
 #ifndef __CONFIG_TI_OMAP5_COMMON_H
 #define __CONFIG_TI_OMAP5_COMMON_H
 
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_798870
-
 /* Use General purpose timer 1 */
 #define CONFIG_SYS_TIMERBASE           GPT2_BASE
 
index e4b3290268e77fbdbd3fc31b3e74eff9b5a06c38..2b80352f54041f5a1fa4dd7329a456a1a48ef98e 100644 (file)
 /* High Level Configuration Options */
 #define CONFIG_SYS_THUMB_BUILD
 #define CONFIG_OMAP                    /* in a TI OMAP core */
-/* Common ARM Erratas */
-#define CONFIG_ARM_ERRATA_454179
-#define CONFIG_ARM_ERRATA_430973
-#define CONFIG_ARM_ERRATA_621766
 
 #define CONFIG_MACH_TYPE               MACH_TYPE_TRICORDER
 /*
index f6c9101e9573be15dce992dcfb444d8f45424f11..c02cbef2e9e32c03537ca10f335c3e5af3dc82ab 100644 (file)
@@ -141,24 +141,6 @@ CONFIG_ARMV8_SWITCH_TO_EL1
 CONFIG_ARM_ARCH_CP15_ERRATA
 CONFIG_ARM_ASM_UNIFIED
 CONFIG_ARM_DCC
-CONFIG_ARM_ERRATA_430973
-CONFIG_ARM_ERRATA_454179
-CONFIG_ARM_ERRATA_621766
-CONFIG_ARM_ERRATA_716044
-CONFIG_ARM_ERRATA_742230
-CONFIG_ARM_ERRATA_743622
-CONFIG_ARM_ERRATA_751472
-CONFIG_ARM_ERRATA_761320
-CONFIG_ARM_ERRATA_773022
-CONFIG_ARM_ERRATA_774769
-CONFIG_ARM_ERRATA_794072
-CONFIG_ARM_ERRATA_798870
-CONFIG_ARM_ERRATA_801819
-CONFIG_ARM_ERRATA_826974
-CONFIG_ARM_ERRATA_828024
-CONFIG_ARM_ERRATA_829520
-CONFIG_ARM_ERRATA_833069
-CONFIG_ARM_ERRATA_833471
 CONFIG_ARM_FREQ
 CONFIG_ARM_GIC_BASE_ADDRESS
 CONFIG_ARM_PL180_MMCI