]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_SPL_NAND_RAW_ONLY et al to Kconfig
authorTom Rini <trini@konsulko.com>
Fri, 13 May 2022 16:46:23 +0000 (12:46 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 6 Jun 2022 16:09:00 +0000 (12:09 -0400)
This converts the following to Kconfig:
   CONFIG_SPL_NAND_RAW_ONLY
   CONFIG_SPL_NAND_SOFTECC

Signed-off-by: Tom Rini <trini@konsulko.com>
15 files changed:
README
common/spl/Kconfig
configs/axm_defconfig
configs/corvus_defconfig
configs/devkit3250_defconfig
configs/gardena-smart-gateway-at91sam_defconfig
configs/smartweb_defconfig
configs/taurus_defconfig
include/configs/at91sam9m10g45ek.h
include/configs/corvus.h
include/configs/devkit3250.h
include/configs/gardena-smart-gateway-at91sam.h
include/configs/pm9g45.h
include/configs/smartweb.h
include/configs/taurus.h

diff --git a/README b/README
index 484a2c500ccf9b01bf0eb02f084c1881222afad9..0fd92cfaebc5c0f69afab8d4947d0875f24c796c 100644 (file)
--- a/README
+++ b/README
@@ -1743,10 +1743,6 @@ The following options need to be configured:
                Support for a lightweight UBI (fastmap) scanner and
                loader
 
-               CONFIG_SPL_NAND_RAW_ONLY
-               Support to boot only raw u-boot.bin images. Use this only
-               if you need to save space.
-
                CONFIG_SPL_COMMON_INIT_DDR
                Set for common ddr init with serial presence detect in
                SPL binary.
index 42681211d0df267fa6028701bfda58a149739a55..b45607b3f758a4a02ac0f4ab6343fab2d3d962c8 100644 (file)
@@ -763,13 +763,23 @@ config SPL_NAND_SUPPORT
          This enables the drivers in drivers/mtd/nand/raw as part of an SPL
          build.
 
+config SPL_NAND_RAW_ONLY
+       bool "Support to boot only raw u-boot.bin images"
+       depends on SPL_NAND_SUPPORT
+       help
+         Use this only if you need to save space.
+
 config SPL_NAND_DRIVERS
        bool "Use standard NAND driver"
        help
          SPL uses normal NAND drivers, not minimal drivers.
 
 config SPL_NAND_ECC
-       bool "Include standard software ECC in the SPL"
+       bool "Include standard ECC in SPL"
+
+config SPL_NAND_SOFTECC
+       bool "Use software ECC in SPL"
+       depends on SPL_NAND_ECC
 
 config SPL_NAND_SIMPLE
        bool "Support simple NAND drivers in SPL"
index d17cdd29c56216783ea496469710707b6a45c3a0..ebda5a49fe99c4d5c127324e5735012ade90d875 100644 (file)
@@ -39,8 +39,10 @@ CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_CRC32=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_NAND_RAW_ONLY=y
 CONFIG_SPL_NAND_DRIVERS=y
 CONFIG_SPL_NAND_ECC=y
+CONFIG_SPL_NAND_SOFTECC=y
 CONFIG_SPL_NAND_BASE=y
 CONFIG_SPL_DM_SPI_FLASH=y
 CONFIG_HUSH_PARSER=y
index 443f15e71d38bb1c5e99feb365ede90f3a69199b..9b55d9e87db0dd452a3daba8fe5bab98e62160fe 100644 (file)
@@ -32,8 +32,10 @@ CONFIG_BOOTCOMMAND="nand read 0x70000000 0x200000 0x300000;bootm 0x70000000"
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_NAND_RAW_ONLY=y
 CONFIG_SPL_NAND_DRIVERS=y
 CONFIG_SPL_NAND_ECC=y
+CONFIG_SPL_NAND_SOFTECC=y
 CONFIG_SPL_NAND_BASE=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="U-Boot> "
index 71e80e8048535f116e6f4077f6c918db39e7aa6d..5b25463df969dd52041e753b8fc42162905d5657 100644 (file)
@@ -26,8 +26,10 @@ CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_SPL_BOARD_INIT=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_NAND_RAW_ONLY=y
 CONFIG_SPL_NAND_DRIVERS=y
 CONFIG_SPL_NAND_ECC=y
+CONFIG_SPL_NAND_SOFTECC=y
 CONFIG_SPL_NAND_SIMPLE=y
 CONFIG_CMD_IMLS=y
 CONFIG_CMD_GPIO=y
index 0dbd0849581a4d951dec31d1708175cb0edb0770..2ee716365341a089ad858963c1c602c238eaa2a0 100644 (file)
@@ -35,6 +35,7 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_NAND_RAW_ONLY=y
 CONFIG_SPL_NAND_DRIVERS=y
 CONFIG_SPL_NAND_BASE=y
 CONFIG_HUSH_PARSER=y
index a9f90e907538f492cc35b205c0f1a0de304e3a38..b3c6d23e717b74d04e16639119f1cd6f722a4002 100644 (file)
@@ -33,8 +33,10 @@ CONFIG_BOOTCOMMAND="run flashboot"
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_NAND_RAW_ONLY=y
 CONFIG_SPL_NAND_DRIVERS=y
 CONFIG_SPL_NAND_ECC=y
+CONFIG_SPL_NAND_SOFTECC=y
 CONFIG_SPL_NAND_BASE=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="U-Boot# "
index 90f9133cb62d90cd7c46cab5e09b74481f7ac90b..8bc5afdc2e512e15fefd9a26f3648df52631eda9 100644 (file)
@@ -43,8 +43,10 @@ CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_CRC32=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_NAND_RAW_ONLY=y
 CONFIG_SPL_NAND_DRIVERS=y
 CONFIG_SPL_NAND_ECC=y
+CONFIG_SPL_NAND_SOFTECC=y
 CONFIG_SPL_NAND_BASE=y
 CONFIG_SPL_DM_SPI_FLASH=y
 CONFIG_HUSH_PARSER=y
index 38b9061080ab2a76f495fd72e13b23953e70ec0b..2930d7a1499fd8d9eadf57656e7e146856accf91 100644 (file)
@@ -56,7 +56,6 @@
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME                "u-boot.img"
 
 #elif CONFIG_NAND_BOOT
-#define CONFIG_SPL_NAND_SOFTECC
 #define CONFIG_SYS_NAND_U_BOOT_SIZE    0x80000
 
 #define CONFIG_SYS_NAND_ECCSIZE                256
index 4809b59ecc394a571a20a6a21db378ccb7a043bd..b4fef73121af5ca0308e35edc1ccb13162854b0a 100644 (file)
@@ -63,8 +63,6 @@
 #define CONFIG_SPL_BSS_START_ADDR      CONFIG_SPL_MAX_SIZE
 #define CONFIG_SPL_BSS_MAX_SIZE                (SZ_2K)
 
-#define CONFIG_SPL_NAND_RAW_ONLY
-#define CONFIG_SPL_NAND_SOFTECC
 #define CONFIG_SYS_NAND_U_BOOT_SIZE    0x80000
 #define        CONFIG_SYS_NAND_U_BOOT_START    CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_NAND_U_BOOT_DST     CONFIG_SYS_TEXT_BASE
index 93a704cc31d6d34c25cbd69b63d9d336dddbe549..d2a760e9b1f6c335e9a8c01e5bd1b576798f6123 100644 (file)
 
 /* SPL will use serial */
 
-/* SPL loads an image from NAND */
-#define CONFIG_SPL_NAND_RAW_ONLY
-
-#define CONFIG_SPL_NAND_SOFTECC
-
 #define CONFIG_SPL_MAX_SIZE            0x20000
 #define CONFIG_SPL_PAD_TO              CONFIG_SPL_MAX_SIZE
 
index 5e6a8ee770e055b58177ef808b51288a957443cf..3e99d2cfb04dbe296745536e2f6d26303360c818 100644 (file)
@@ -51,7 +51,6 @@
 #define CONFIG_SYS_MCKR                        0x1301
 #define CONFIG_SYS_MCKR_CSS            0x1302
 
-#define CONFIG_SPL_NAND_RAW_ONLY
 #define CONFIG_SYS_NAND_U_BOOT_SIZE    0xa0000
 #define        CONFIG_SYS_NAND_U_BOOT_START    CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_NAND_U_BOOT_DST     CONFIG_SYS_TEXT_BASE
index b858aaa1ccd9393838b6cbd3fe77d3398df1a9d5..658b8a7f15ffac9ddf9fbbb59251cff6331570eb 100644 (file)
@@ -61,7 +61,6 @@
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME                "u-boot.img"
 
 #elif CONFIG_NAND_BOOT
-#define CONFIG_SPL_NAND_SOFTECC
 #define CONFIG_SYS_NAND_U_BOOT_SIZE    0x80000
 
 #define CONFIG_SYS_NAND_ECCSIZE                256
index b51a5203547d8df8cd99d6d037fafe84c599c552..d58d76d109147fe07ea7ed392515c64f4c108fd1 100644 (file)
 #define CONFIG_SYS_SPL_MALLOC_SIZE      CONFIG_SYS_MALLOC_LEN
 
 #define CONFIG_SYS_NAND_ENABLE_PIN_SPL (2*32 + 14)
-#define CONFIG_SPL_NAND_RAW_ONLY
-#define CONFIG_SPL_NAND_SOFTECC
 #define CONFIG_SYS_NAND_U_BOOT_SIZE    SZ_512K
 #define        CONFIG_SYS_NAND_U_BOOT_START    CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_NAND_U_BOOT_DST     CONFIG_SYS_TEXT_BASE
index 77d80bfc9813009604e10ac0939b447550e9258b..768bfc6cc6c3b30c545b560a9f7b36b1f838bbed 100644 (file)
 #define CONFIG_SPL_BSS_MAX_SIZE                (3 * SZ_512)
 
 #define CONFIG_SYS_NAND_ENABLE_PIN_SPL (2*32 + 14)
-#define CONFIG_SPL_NAND_RAW_ONLY
-#define CONFIG_SPL_NAND_SOFTECC
 #define CONFIG_SYS_NAND_U_BOOT_SIZE    SZ_512K
 #define        CONFIG_SYS_NAND_U_BOOT_START    CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_NAND_U_BOOT_DST     CONFIG_SYS_TEXT_BASE