Convert CONFIG_A003399_NOR_WORKAROUND to Kconfig
authorTom Rini <trini@konsulko.com>
Fri, 11 Mar 2022 14:11:59 +0000 (09:11 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 18 Mar 2022 16:48:17 +0000 (12:48 -0400)
This converts the following to Kconfig:
   CONFIG_A003399_NOR_WORKAROUND

Signed-off-by: Tom Rini <trini@konsulko.com>
README
arch/powerpc/cpu/mpc85xx/Kconfig
include/configs/P1010RDB.h

diff --git a/README b/README
index b2a61c6..2f3b288 100644 (file)
--- a/README
+++ b/README
@@ -374,10 +374,6 @@ The following options need to be configured:
                See Freescale App Note 4493 for more information about
                this erratum.
 
-               CONFIG_A003399_NOR_WORKAROUND
-               Enables a workaround for IFC erratum A003399. It is only
-               required during NOR boot.
-
                CONFIG_A008044_WORKAROUND
                Enables a workaround for T1040/T1042 erratum A008044. It is only
                required during NAND boot and valid for Rev 1.0 SoC revision
index a978eea..0e0b923 100644 (file)
@@ -354,6 +354,7 @@ config ARCH_MPC8560
 
 config ARCH_P1010
        bool
+       select A003399_NOR_WORKAROUND if SYS_FSL_ERRATUM_IFC_A003399 && !SPL
        select BTB
        select FSL_LAW
        select SYS_CACHE_SHIFT_5
@@ -878,6 +879,12 @@ config SYS_CCSRBAR_DEFAULT
                if changed by pre-boot regime. The value here must match
                the current value in SoC. If not sure, do not change.
 
+config A003399_NOR_WORKAROUND
+       bool
+       help
+         Enables a workaround for IFC erratum A003399. It is only required
+         during NOR boot.
+
 config SYS_FSL_ERRATUM_A004468
        bool
 
index 5f36951..8fd9eb7 100644 (file)
@@ -411,12 +411,6 @@ extern unsigned long get_sdram_size(void);
 #undef CONFIG_SYS_RAMBOOT
 #endif
 
-#ifdef CONFIG_SYS_FSL_ERRATUM_IFC_A003399
-#if !defined(CONFIG_SPL) && !defined(CONFIG_SYS_RAMBOOT)
-#define CONFIG_A003399_NOR_WORKAROUND
-#endif
-#endif
-
 #define CONFIG_SYS_INIT_RAM_LOCK
 #define CONFIG_SYS_INIT_RAM_ADDR       0xffd00000 /* stack in RAM */
 #define CONFIG_SYS_INIT_RAM_SIZE       0x00004000 /* End of used area in RAM */