aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini2022-06-15 12:03:51 -0400
committerTom Rini2022-07-05 17:03:01 -0400
commitdd4bf244455acd5a18616872b4e76d93180762d0 (patch)
treec62deef0438a2eb8e64d686eb4ec9180cf5e1321
parentddd39d0cc1a025a1e2e3c792cc8286dbdfa29b54 (diff)
Convert CONFIG_USE_ONENAND_BOARD_INIT to Kconfig
This converts the following to Kconfig: CONFIG_USE_ONENAND_BOARD_INIT Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--cmd/Kconfig4
-rw-r--r--configs/igep00x0_defconfig1
-rw-r--r--configs/s5p_goni_defconfig1
-rw-r--r--configs/smdkc100_defconfig1
-rw-r--r--include/configs/omap3_igep00x0.h1
-rw-r--r--include/configs/s5p_goni.h1
-rw-r--r--include/configs/s5pc210_universal.h1
-rw-r--r--include/configs/smdkc100.h1
8 files changed, 7 insertions, 4 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index ad36ae63c65..bb956e33075 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1298,6 +1298,10 @@ config CMD_ONENAND
and erasing blocks. It allso provides a way to show and change
bad blocks, and test the device.
+config USE_ONENAND_BOARD_INIT
+ bool "Call onenand_board_init() in the onenand command"
+ depends on CMD_ONENAND
+
config CMD_OSD
bool "osd"
help
diff --git a/configs/igep00x0_defconfig b/configs/igep00x0_defconfig
index 00f0a670c2b..17c97ac27f7 100644
--- a/configs/igep00x0_defconfig
+++ b/configs/igep00x0_defconfig
@@ -52,6 +52,7 @@ CONFIG_CMD_SPL=y
# CONFIG_CMD_FLASH is not set
CONFIG_CMD_NAND=y
CONFIG_CMD_ONENAND=y
+CONFIG_USE_ONENAND_BOARD_INIT=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_CACHE=y
CONFIG_CMD_MTDPARTS=y
diff --git a/configs/s5p_goni_defconfig b/configs/s5p_goni_defconfig
index b5f3ae26b67..17bd8424da2 100644
--- a/configs/s5p_goni_defconfig
+++ b/configs/s5p_goni_defconfig
@@ -32,6 +32,7 @@ CONFIG_CMD_DFU=y
CONFIG_CMD_GPT=y
CONFIG_CMD_MMC=y
CONFIG_CMD_ONENAND=y
+CONFIG_USE_ONENAND_BOARD_INIT=y
CONFIG_CMD_USB_MASS_STORAGE=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_CACHE=y
diff --git a/configs/smdkc100_defconfig b/configs/smdkc100_defconfig
index 5f2ab44d404..1ed3a8cd3a0 100644
--- a/configs/smdkc100_defconfig
+++ b/configs/smdkc100_defconfig
@@ -26,6 +26,7 @@ CONFIG_SYS_CBSIZE=256
CONFIG_SYS_PBSIZE=384
# CONFIG_CMD_FLASH is not set
CONFIG_CMD_ONENAND=y
+CONFIG_USE_ONENAND_BOARD_INIT=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_CACHE=y
CONFIG_CMD_FAT=y
diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h
index 6be214753f1..97f47ea5b71 100644
--- a/include/configs/omap3_igep00x0.h
+++ b/include/configs/omap3_igep00x0.h
@@ -66,7 +66,6 @@
BOOTENV
/* OneNAND config */
-#define CONFIG_USE_ONENAND_BOARD_INIT
#define CONFIG_SYS_ONENAND_BASE ONENAND_MAP
#define CONFIG_SYS_ONENAND_BLOCK_SIZE (128*1024)
diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h
index ed4f55a4323..8208f14e09e 100644
--- a/include/configs/s5p_goni.h
+++ b/include/configs/s5p_goni.h
@@ -126,7 +126,6 @@
/* FLASH and environment organization */
#define CONFIG_MMC_DEFAULT_DEV 0
-#define CONFIG_USE_ONENAND_BOARD_INIT
#define CONFIG_SYS_ONENAND_BASE 0xB0000000
#define CONFIG_USB_GADGET_DWC2_OTG_PHY
diff --git a/include/configs/s5pc210_universal.h b/include/configs/s5pc210_universal.h
index cbc941afb9d..c51ff5718cf 100644
--- a/include/configs/s5pc210_universal.h
+++ b/include/configs/s5pc210_universal.h
@@ -87,7 +87,6 @@
"mmcrootpart=3\0" \
"opts=always_resume=1"
-#define CONFIG_USE_ONENAND_BOARD_INIT
#define CONFIG_SYS_ONENAND_BASE 0x0C000000
#define CONFIG_USB_GADGET_DWC2_OTG_PHY
diff --git a/include/configs/smdkc100.h b/include/configs/smdkc100.h
index 4199f2bc8e6..1395b8dfe38 100644
--- a/include/configs/smdkc100.h
+++ b/include/configs/smdkc100.h
@@ -90,7 +90,6 @@
* Boot configuration
*/
-#define CONFIG_USE_ONENAND_BOARD_INIT
#define CONFIG_SYS_ONENAND_BASE 0xE7100000
/*