Convert CONFIG_SYS_NAND_HW_ECC_OOBFIRST to Kconfig
This converts the following to Kconfig:
CONFIG_SYS_NAND_HW_ECC_OOBFIRST
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 48a7507..49b7a4b 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -712,6 +712,11 @@
help
Support for NAND boot using simple NAND drivers that
expose the cmd_ctrl() interface.
+
+config SYS_NAND_HW_ECC_OOBFIRST
+ bool "In SPL, read the OOB first and then the data from NAND"
+ depends on SPL_NAND_SIMPLE
+
endif
endif # if NAND