]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT to Kconfig
authorTom Rini <trini@konsulko.com>
Sat, 11 Dec 2021 19:55:54 +0000 (14:55 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 27 Dec 2021 13:41:38 +0000 (08:41 -0500)
This converts the following to Kconfig:
   CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT

In order to do this conversion, expose this option to the user and
use "save" not "safe" in the text.

Signed-off-by: Tom Rini <trini@konsulko.com>
configs/corvus_defconfig
configs/pm9g45_defconfig
drivers/mtd/nand/raw/Kconfig
include/configs/corvus.h
include/configs/pm9g45.h

index 9c3c92a2aeeea394e9832043ef0bca1350d0b1d0..d4481131087b2927da3b974c92eb9e81ded7a585 100644 (file)
@@ -61,6 +61,7 @@ CONFIG_AT91_GPIO=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
+CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT=y
 # CONFIG_SYS_NAND_USE_FLASH_BBT is not set
 CONFIG_NAND_ATMEL=y
 CONFIG_SYS_NAND_BLOCK_SIZE=0x20000
index 2d63a8c7a3e348611e0a86dbb28f765917fa44ed..7fbbbabf22f757b89a001f1005d40ff03e23eb36 100644 (file)
@@ -47,6 +47,7 @@ CONFIG_CLK_AT91=y
 CONFIG_AT91_GPIO=y
 CONFIG_GENERIC_ATMEL_MCI=y
 CONFIG_MTD=y
+CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT=y
 # CONFIG_SYS_NAND_USE_FLASH_BBT is not set
 CONFIG_NAND_ATMEL=y
 CONFIG_DM_ETH=y
index a4073b9ba41380787cf7716efeac66f48c075552..e8528cbc30cdef811872e1e19613ae59c9144713 100644 (file)
@@ -10,9 +10,9 @@ config SYS_NAND_SELF_INIT
          NAND initialization process.
 
 config SYS_NAND_DRIVER_ECC_LAYOUT
-       bool
+       bool "Omit standard ECC layouts to save space"
        help
-         Omit standard ECC layouts to safe space. Select this if your driver
+         Omit standard ECC layouts to save space. Select this if your driver
          is known to provide its own ECC layout.
 
 config SYS_NAND_USE_FLASH_BBT
index 2d615d0e11d0f7eb2ce57bd2a334b48ad367e850..27284f791381971c7e8a2b80780ceddfa1741e6f 100644 (file)
@@ -66,7 +66,6 @@
 #define CONFIG_SYS_NAND_MASK_CLE               (1 << 22)
 #define CONFIG_SYS_NAND_ENABLE_PIN             AT91_PIN_PC14
 #define CONFIG_SYS_NAND_READY_PIN              AT91_PIN_PC8
-#define CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT
 #endif
 
 /* Ethernet */
index eab382502160252defd6c1ebf6c7458e09ea47fb..b20539164211338b09b9dd5aaccd8a74ebc473f9 100644 (file)
@@ -45,7 +45,6 @@
 #define CONFIG_SYS_NAND_MASK_CLE               BIT(22)
 #define CONFIG_SYS_NAND_ENABLE_PIN             AT91_PIN_PC14
 #define CONFIG_SYS_NAND_READY_PIN              AT91_PIN_PD3
-#define CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT
 #endif
 
 /* Ethernet */