Patchwork [U-Boot,26/31] M28: Enable UBI and UBIFS

login
register
mail settings
Submitter Marek Vasut
Date Sept. 8, 2011, 8:42 p.m.
Message ID <1315514579-19215-27-git-send-email-marek.vasut@gmail.com>
Download mbox | patch
Permalink /patch/113978/
State Changes Requested
Headers show

Comments

Marek Vasut - Sept. 8, 2011, 8:42 p.m.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
---
 include/configs/m28evk.h |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

Patch

diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index dbeb37e..0d4a0a3 100644
--- a/include/configs/m28evk.h
+++ b/include/configs/m28evk.h
@@ -130,6 +130,22 @@ 
 #define	CONFIG_SYS_NAND_BASE		0x60000000
 #define	CONFIG_SYS_NAND_5_ADDR_CYCLE
 #define	NAND_MAX_CHIPS			8
+
+#define	CONFIG_CMD_UBI
+#define	CONFIG_CMD_UBIFS
+#define	CONFIG_CMD_MTDPARTS
+#define	CONFIG_RBTREE
+#define	CONFIG_LZO
+#define	CONFIG_MTD_DEVICE
+#define	CONFIG_MTD_PARTITIONS
+#define	MTDIDS_DEFAULT			"nand0=gpmi-nand.0"
+#define	MTDPARTS_DEFAULT			\
+	"mtdparts=gpmi-nand.0:"			\
+		"3m(bootloader)ro,"		\
+		"128k(environment),"		\
+		"128k(redundant-environment),"	\
+		"4m(kernel),"			\
+		"-(filesystem)"
 #endif
 
 /*