[U-Boot] [PATCH v2 9/14] sunxi: Enable UBI and NAND support

Maxime Ripard maxime.ripard at free-electrons.com
Tue Nov 22 13:38:39 CET 2016


From: Hans de Goede <hdegoede at redhat.com>

Enable the NAND and UBI support in the configuration header so that we can
(finally) use it.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>
---
 board/sunxi/Kconfig            |  8 ++++++++
 include/configs/sunxi-common.h | 14 ++++++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index e1d4ab148f08..c6a620a20167 100644
--- a/board/sunxi/Kconfig
+++ b/board/sunxi/Kconfig
@@ -460,6 +460,14 @@ config AXP_GPIO
 	---help---
 	Say Y here to enable support for the gpio pins of the axp PMIC ICs.
 
+if NAND_SUNXI
+config CMD_NAND
+	default y
+
+config CMD_UBI
+	default y
+endif
+
 config VIDEO
 	bool "Enable graphical uboot console on HDMI, LCD or VGA"
 	depends on !MACH_SUN8I_A83T && !MACH_SUN8I_H3 && !MACH_SUN9I && !MACH_SUN50I
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index fd2677ba14a4..feedd9f8811b 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -132,6 +132,20 @@
 #define CONFIG_SYS_NAND_MAX_ECCPOS 1664
 #define CONFIG_SYS_NAND_ONFI_DETECTION
 #define CONFIG_SYS_MAX_NAND_DEVICE 8
+
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#endif
+
+#ifdef CONFIG_CMD_NAND
+#define CONFIG_CMD_NAND_TRIMFFS
+#endif
+
+#ifdef CONFIG_CMD_UBI
+#define CONFIG_CMD_UBIFS
+
+#define CONFIG_RBTREE
+#define CONFIG_LZO
 #endif
 
 #ifdef CONFIG_SPL_SPI_SUNXI
-- 
git-series 0.8.11


More information about the U-Boot mailing list