]> git.sur5r.net Git - u-boot/commitdiff
[iDMR] Add MTD and JFFS2 support, also add default partition definition.
authorBartlomiej Sieka <tur@semihalf.com>
Tue, 23 Jan 2007 16:22:06 +0000 (17:22 +0100)
committerBartlomiej Sieka <tur@semihalf.com>
Tue, 23 Jan 2007 16:22:06 +0000 (17:22 +0100)
include/configs/idmr.h

index 8143f0d3febf5d68a1053f1dba4ce2e98556516b..b1dbe2ccb944d392aa001446a0f2d5686663145f 100644 (file)
@@ -83,6 +83,7 @@
  */
 #define CONFIG_COMMANDS                ((CONFIG_CMD_DFL                | \
                                        CFG_CMD_PING            | \
+                                       CFG_CMD_JFFS2           | \
                                        CFG_CMD_NET)            & \
                                        ~(CFG_CMD_LOADS         | \
                                                CFG_CMD_LOADB))
 /* Port configuration */
 #define CFG_FECI2C             0xF0
 
+
+/* Dynamic MTD partition support */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=idmr-0"
+
+#define MTDPARTS_DEFAULT       "mtdparts=idmr-0:128k(u-boot)," \
+                                               "64k(env),"     \
+                                               "640k(kernel)," \
+                                               "2m(rootfs),"   \
+                                               "-(user)";
+
 #if (CONFIG_COMMANDS & CFG_CMD_MII)
 #error MII commands don't work on iDMR board and sholud not be enabled.
 #endif /* (CONFIG_COMMANDS & CFG_CMD_MII) */