Convert CONFIG_SYS_NAND_SIZE to Kconfig
This converts the following to Kconfig:
CONFIG_SYS_NAND_SIZE
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 5483efe..eb37b62 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -461,6 +461,11 @@
This enables the NAND driver for the NAND flash controller on the
i.MX27 / i.MX31 / i.MX5 processors.
+config SYS_NAND_SIZE
+ int "Size of NAND in kilobytes"
+ depends on NAND_MXC && SPL_NAND_SUPPORT
+ default 268435456
+
config NAND_MXS
bool "MXS NAND support"
depends on MX23 || MX28 || MX6 || MX7 || IMX8 || IMX8M