[U-Boot] [PATCH v4 8/16] cmd: nand: Expose optional suboptions in Kconfig

Maxime Ripard maxime.ripard at free-electrons.com
Mon Jan 23 14:46:50 CET 2017


From: Boris Brezillon <boris.brezillon at free-electrons.com>

Sometime we need to enable advanced suboptions of the nand command set.
Expose these suboptions in Kconfig.

Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>
---
 cmd/Kconfig | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 44980c7dbef3..50c943ef8da0 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -405,11 +405,29 @@ config CMD_MMC
 	help
 	  MMC memory mapped support.
 
-config CMD_NAND
+menuconfig CMD_NAND
 	bool "nand"
 	help
 	  NAND support.
 
+if CMD_NAND
+config CMD_NAND_TRIMFFS
+	bool "nand write.trimffs"
+	help
+	  Allows one to skip empty pages when flashing something on a NAND.
+
+config CMD_NAND_LOCK_UNLOCK
+	bool "nand lock/unlock"
+	help
+	  NAND locking support.
+
+config CMD_NAND_TORTURE
+	bool "nand torture"
+	help
+	  NAND torture support.
+
+endif # CMD_NAND
+
 config CMD_SF
 	bool "sf"
 	help
-- 
git-series 0.8.11


More information about the U-Boot mailing list