[U-Boot] [PATCH 07/41] Convert CONFIG_CMD_ONENAND to Kconfig

Simon Glass sjg at chromium.org
Fri Jul 21 23:11:06 UTC 2017


This converts the following to Kconfig:
   CONFIG_CMD_ONENAND

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 cmd/Kconfig                                     | 8 ++++++++
 configs/igep0020_defconfig                      | 1 +
 configs/igep0030_defconfig                      | 1 +
 configs/igep0032_defconfig                      | 1 +
 configs/s5p_goni_defconfig                      | 1 +
 configs/smdkc100_defconfig                      | 1 +
 configs/vct_platinum_onenand_defconfig          | 1 +
 configs/vct_platinum_onenand_small_defconfig    | 1 +
 configs/vct_platinumavc_onenand_defconfig       | 1 +
 configs/vct_platinumavc_onenand_small_defconfig | 1 +
 configs/vct_premium_onenand_defconfig           | 1 +
 configs/vct_premium_onenand_small_defconfig     | 1 +
 include/config_cmd_all.h                        | 1 -
 include/configs/exynos4-common.h                | 2 --
 include/configs/nokia_rx51.h                    | 2 --
 include/configs/omap3_igep00x0.h                | 2 --
 include/configs/s5p_goni.h                      | 1 -
 include/configs/smdkc100.h                      | 1 -
 include/configs/vct.h                           | 4 ----
 scripts/config_whitelist.txt                    | 1 -
 20 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index e5b63116dc..3e994e46c9 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -631,6 +631,14 @@ config CMD_NAND_TORTURE
 
 endif # CMD_NAND
 
+config CMD_ONENAND
+	bool "onenand - access to onenand device"
+	help
+	  OneNAND is a brand of NAND ('Not AND' gate) flash which provides
+	  various useful features. This command allows reading, writing,
+	  and erasing blocks. It allso provides a way to show and change
+	  bad blocks, and test the device.
+
 config CMD_PART
 	bool "part"
 	select PARTITION_UUIDS
diff --git a/configs/igep0020_defconfig b/configs/igep0020_defconfig
index a86a00997f..a347c547e2 100644
--- a/configs/igep0020_defconfig
+++ b/configs/igep0020_defconfig
@@ -18,6 +18,7 @@ CONFIG_SPL_OS_BOOT=y
 CONFIG_CMD_ASKENV=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_MMC=y
+CONFIG_CMD_ONENAND=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_GPIO=y
diff --git a/configs/igep0030_defconfig b/configs/igep0030_defconfig
index 2616fb2e1a..01e340832b 100644
--- a/configs/igep0030_defconfig
+++ b/configs/igep0030_defconfig
@@ -18,6 +18,7 @@ CONFIG_SPL_OS_BOOT=y
 CONFIG_CMD_ASKENV=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_MMC=y
+CONFIG_CMD_ONENAND=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_GPIO=y
diff --git a/configs/igep0032_defconfig b/configs/igep0032_defconfig
index 5859e6e95e..71e01a59bf 100644
--- a/configs/igep0032_defconfig
+++ b/configs/igep0032_defconfig
@@ -17,6 +17,7 @@ CONFIG_SPL_OS_BOOT=y
 CONFIG_CMD_ASKENV=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_MMC=y
+CONFIG_CMD_ONENAND=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_GPIO=y
diff --git a/configs/s5p_goni_defconfig b/configs/s5p_goni_defconfig
index 8aeab15bfb..3e93eb7e0f 100644
--- a/configs/s5p_goni_defconfig
+++ b/configs/s5p_goni_defconfig
@@ -11,6 +11,7 @@ CONFIG_SYS_PROMPT="Goni # "
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
+CONFIG_CMD_ONENAND=y
 CONFIG_CMD_DFU=y
 CONFIG_CMD_USB_MASS_STORAGE=y
 # CONFIG_CMD_FPGA is not set
diff --git a/configs/smdkc100_defconfig b/configs/smdkc100_defconfig
index a1eca8694d..b91c2ac473 100644
--- a/configs/smdkc100_defconfig
+++ b/configs/smdkc100_defconfig
@@ -8,6 +8,7 @@ CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="SMDKC100 # "
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
+CONFIG_CMD_ONENAND=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_FAT=y
diff --git a/configs/vct_platinum_onenand_defconfig b/configs/vct_platinum_onenand_defconfig
index 5d4cccccba..03b4ed6a5b 100644
--- a/configs/vct_platinum_onenand_defconfig
+++ b/configs/vct_platinum_onenand_defconfig
@@ -8,6 +8,7 @@ CONFIG_SYS_PROMPT="$ "
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_EEPROM=y
 # CONFIG_CMD_FLASH is not set
+CONFIG_CMD_ONENAND=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/vct_platinum_onenand_small_defconfig b/configs/vct_platinum_onenand_small_defconfig
index 5a5edd8260..d1b8c6c5a4 100644
--- a/configs/vct_platinum_onenand_small_defconfig
+++ b/configs/vct_platinum_onenand_small_defconfig
@@ -14,6 +14,7 @@ CONFIG_SYS_PROMPT="$ "
 # CONFIG_CMD_LOADB is not set
 # CONFIG_CMD_LOADS is not set
 # CONFIG_CMD_FLASH is not set
+CONFIG_CMD_ONENAND=y
 # CONFIG_CMD_ITEST is not set
 # CONFIG_CMD_SOURCE is not set
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/vct_platinumavc_onenand_defconfig b/configs/vct_platinumavc_onenand_defconfig
index 1f0a3f8b49..79f2eae0a1 100644
--- a/configs/vct_platinumavc_onenand_defconfig
+++ b/configs/vct_platinumavc_onenand_defconfig
@@ -8,6 +8,7 @@ CONFIG_SYS_PROMPT="$ "
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_EEPROM=y
 # CONFIG_CMD_FLASH is not set
+CONFIG_CMD_ONENAND=y
 CONFIG_CMD_I2C=y
 # CONFIG_CMD_SETEXPR is not set
 # CONFIG_CMD_NET is not set
diff --git a/configs/vct_platinumavc_onenand_small_defconfig b/configs/vct_platinumavc_onenand_small_defconfig
index 9e2fcbf6d0..6da8046809 100644
--- a/configs/vct_platinumavc_onenand_small_defconfig
+++ b/configs/vct_platinumavc_onenand_small_defconfig
@@ -14,6 +14,7 @@ CONFIG_SYS_PROMPT="$ "
 # CONFIG_CMD_LOADB is not set
 # CONFIG_CMD_LOADS is not set
 # CONFIG_CMD_FLASH is not set
+CONFIG_CMD_ONENAND=y
 # CONFIG_CMD_ITEST is not set
 # CONFIG_CMD_SOURCE is not set
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/vct_premium_onenand_defconfig b/configs/vct_premium_onenand_defconfig
index ac9cf36f68..ae30275adc 100644
--- a/configs/vct_premium_onenand_defconfig
+++ b/configs/vct_premium_onenand_defconfig
@@ -8,6 +8,7 @@ CONFIG_SYS_PROMPT="$ "
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_EEPROM=y
 # CONFIG_CMD_FLASH is not set
+CONFIG_CMD_ONENAND=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/vct_premium_onenand_small_defconfig b/configs/vct_premium_onenand_small_defconfig
index 6e649ec0d7..3e188ab6c3 100644
--- a/configs/vct_premium_onenand_small_defconfig
+++ b/configs/vct_premium_onenand_small_defconfig
@@ -14,6 +14,7 @@ CONFIG_SYS_PROMPT="$ "
 # CONFIG_CMD_LOADB is not set
 # CONFIG_CMD_LOADS is not set
 # CONFIG_CMD_FLASH is not set
+CONFIG_CMD_ONENAND=y
 # CONFIG_CMD_ITEST is not set
 # CONFIG_CMD_SOURCE is not set
 # CONFIG_CMD_SETEXPR is not set
diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h
index 3b350e0343..dc3f4e38a8 100644
--- a/include/config_cmd_all.h
+++ b/include/config_cmd_all.h
@@ -14,7 +14,6 @@
  */
 
 #define CONFIG_CMD_NAND		/* NAND support			*/
-#define CONFIG_CMD_ONENAND	/* OneNAND support		*/
 #define CONFIG_CMD_PCI		/* pciinfo			*/
 #define CONFIG_CMD_PCMCIA	/* PCMCIA support		*/
 #define CONFIG_CMD_PORTIO	/* Port I/O			*/
diff --git a/include/configs/exynos4-common.h b/include/configs/exynos4-common.h
index c995f35b73..9f0131a7ee 100644
--- a/include/configs/exynos4-common.h
+++ b/include/configs/exynos4-common.h
@@ -20,8 +20,6 @@
 /* SD/MMC configuration */
 #define CONFIG_MMC_DEFAULT_DEV	0
 
-#undef CONFIG_CMD_ONENAND
-
 /* TIZEN THOR downloader support */
 #define CONFIG_CMD_THOR_DOWNLOAD
 #define CONFIG_USB_FUNCTION_THOR
diff --git a/include/configs/nokia_rx51.h b/include/configs/nokia_rx51.h
index 0b12734a09..ac9ee4d779 100644
--- a/include/configs/nokia_rx51.h
+++ b/include/configs/nokia_rx51.h
@@ -104,8 +104,6 @@
 
 #ifdef ONENAND_SUPPORT
 
-#define CONFIG_CMD_ONENAND		/* ONENAND support */
-
 #ifdef UBIFS_SUPPORT
 #define CONFIG_CMD_UBIFS		/* UBIFS Support */
 #endif
diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h
index 4bc36b8575..55928a78ed 100644
--- a/include/configs/omap3_igep00x0.h
+++ b/include/configs/omap3_igep00x0.h
@@ -52,8 +52,6 @@
 #define CONFIG_USBD_MANUFACTURER	"Texas Instruments"
 #define CONFIG_USBD_PRODUCT_NAME	"IGEP"
 
-#define CONFIG_CMD_ONENAND
-
 #ifndef CONFIG_SPL_BUILD
 
 /* Environment */
diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h
index c328e43dd6..dcfd483f3d 100644
--- a/include/configs/s5p_goni.h
+++ b/include/configs/s5p_goni.h
@@ -52,7 +52,6 @@
 #define CONFIG_PWM			1
 
 #define CONFIG_CMD_REGINFO
-#define CONFIG_CMD_ONENAND
 
 /* USB Composite download gadget - g_dnl */
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
diff --git a/include/configs/smdkc100.h b/include/configs/smdkc100.h
index 873d7ed82a..0580c8ceda 100644
--- a/include/configs/smdkc100.h
+++ b/include/configs/smdkc100.h
@@ -62,7 +62,6 @@
 #undef CONFIG_CMD_NAND
 
 #define CONFIG_CMD_REGINFO
-#define CONFIG_CMD_ONENAND
 
 #define CONFIG_MTD_DEVICE
 #define CONFIG_MTD_PARTITIONS
diff --git a/include/configs/vct.h b/include/configs/vct.h
index 230acf03cd..08ac7e0c2a 100644
--- a/include/configs/vct.h
+++ b/include/configs/vct.h
@@ -109,10 +109,6 @@
 #define CONFIG_CMD_NAND
 #endif
 
-#if defined(CONFIG_VCT_ONENAND)
-#define CONFIG_CMD_ONENAND
-#endif
-
 /*
  * BOOTP options
  */
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 603c979a45..c58cdee5cd 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -296,7 +296,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_ONENAND
 CONFIG_CMD_PCA953X
 CONFIG_CMD_PCA953X_INFO
 CONFIG_CMD_PCI
-- 
2.14.0.rc0.284.gd933b75aa4-goog



More information about the U-Boot mailing list