spl, nand: add option CONFIG_SPL_NAND_IDENT to lookup for supported NAND chips
authorJörg Krause <joerg.krause@embedded.rocks>
Sun, 14 Jan 2018 18:26:38 +0000 (19:26 +0100)
committerStefano Babic <sbabic@denx.de>
Wed, 27 Jun 2018 10:20:55 +0000 (12:20 +0200)
Add the config option `CONFIG_SPL_NAND_IDENT` for using the NAND chip ID list
to identify the NAND flash in SPL.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
README
drivers/mtd/nand/Makefile
scripts/config_whitelist.txt

diff --git a/README b/README
index fb331f910d0cf73c7a6f33212a33febb589d14b2..b1ddf89fc588290a85311c713260df3718e1c86e 100644 (file)
--- a/README
+++ b/README
@@ -2625,6 +2625,10 @@ FIT uImage format:
                CONFIG_SPL_NAND_DRIVERS
                SPL uses normal NAND drivers, not minimal drivers.
 
+               CONFIG_SPL_NAND_IDENT
+               SPL uses the chip ID list to identify the NAND flash.
+               Requires CONFIG_SPL_NAND_BASE.
+
                CONFIG_SPL_NAND_ECC
                Include standard software ECC in the SPL
 
index e00cbca0a9a6dc5d5e4cb0b25e5d59c7b4d3101c..c61e3f38391aeb9027fd1599805d91e88c7eb2a9 100644 (file)
@@ -15,6 +15,7 @@ obj-$(CONFIG_SPL_NAND_SIMPLE) += nand_spl_simple.o
 obj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o
 obj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o
 obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o
+obj-$(CONFIG_SPL_NAND_IDENT) += nand_ids.o nand_timings.o
 obj-$(CONFIG_SPL_NAND_INIT) += nand.o
 ifeq ($(CONFIG_SPL_ENV_SUPPORT),y)
 obj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o
index 1a5433759409c1f9ce7c759a7bea3fe40a46a257..1219dcc3befdbde525ea4174691039a589f4858f 100644 (file)
@@ -1937,6 +1937,7 @@ CONFIG_SPL_NAND_BASE
 CONFIG_SPL_NAND_BOOT
 CONFIG_SPL_NAND_DRIVERS
 CONFIG_SPL_NAND_ECC
+CONFIG_SPL_NAND_IDENT
 CONFIG_SPL_NAND_INIT
 CONFIG_SPL_NAND_LOAD
 CONFIG_SPL_NAND_MINIMAL