Convert CONFIG_SAMSUNG_ONENAND to Kconfig
This converts the following to Kconfig:
CONFIG_SAMSUNG_ONENAND
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
diff --git a/configs/s5p_goni_defconfig b/configs/s5p_goni_defconfig
index 4d4005d..b5f3ae2 100644
--- a/configs/s5p_goni_defconfig
+++ b/configs/s5p_goni_defconfig
@@ -50,6 +50,7 @@
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_S5P=y
CONFIG_MTD=y
+CONFIG_SAMSUNG_ONENAND=y
CONFIG_DM_PMIC=y
CONFIG_DM_PMIC_MAX8998=y
CONFIG_PWM_S5P=y
diff --git a/configs/s5pc210_universal_defconfig b/configs/s5pc210_universal_defconfig
index af7fef5..a66ae7d 100644
--- a/configs/s5pc210_universal_defconfig
+++ b/configs/s5pc210_universal_defconfig
@@ -49,6 +49,7 @@
CONFIG_MMC_SDHCI_SDMA=y
CONFIG_MMC_SDHCI_S5P=y
CONFIG_MTD=y
+CONFIG_SAMSUNG_ONENAND=y
CONFIG_DM_PMIC=y
CONFIG_DM_PMIC_MAX8998=y
CONFIG_SOFT_SPI=y
diff --git a/configs/smdkc100_defconfig b/configs/smdkc100_defconfig
index 8c89c39..5f2ab44 100644
--- a/configs/smdkc100_defconfig
+++ b/configs/smdkc100_defconfig
@@ -36,6 +36,7 @@
CONFIG_ENV_IS_IN_ONENAND=y
# CONFIG_MMC is not set
CONFIG_MTD=y
+CONFIG_SAMSUNG_ONENAND=y
CONFIG_SMC911X=y
CONFIG_SMC911X_BASE=0x98800300
CONFIG_PWM_S5P=y
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index d0ab7c1..3d1f6e4 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -168,6 +168,9 @@
This is the driver of embedded flash for some STMicroelectronics
STM32 MCU.
+config SAMSUNG_ONENAND
+ bool "Samsung OneNAND driver support"
+
config USE_SYS_MAX_FLASH_BANKS
bool "Enable Max number of Flash memory banks"
help
diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h
index d9eeec4..ed4f55a 100644
--- a/include/configs/s5p_goni.h
+++ b/include/configs/s5p_goni.h
@@ -127,7 +127,6 @@
#define CONFIG_MMC_DEFAULT_DEV 0
#define CONFIG_USE_ONENAND_BOARD_INIT
-#define CONFIG_SAMSUNG_ONENAND 1
#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 ab4fe6b..cbc941a 100644
--- a/include/configs/s5pc210_universal.h
+++ b/include/configs/s5pc210_universal.h
@@ -88,7 +88,6 @@
"opts=always_resume=1"
#define CONFIG_USE_ONENAND_BOARD_INIT
-#define CONFIG_SAMSUNG_ONENAND
#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 995623e..4199f2b 100644
--- a/include/configs/smdkc100.h
+++ b/include/configs/smdkc100.h
@@ -91,7 +91,6 @@
*/
#define CONFIG_USE_ONENAND_BOARD_INIT
-#define CONFIG_SAMSUNG_ONENAND 1
#define CONFIG_SYS_ONENAND_BASE 0xE7100000
/*