[Motion-PRO] Add MTD and JFFS2 support, also add default partition
authorPiotr Kruszynski <ppk@semihalf.com>
Thu, 10 May 2007 14:55:52 +0000 (16:55 +0200)
committerBartlomiej Sieka <tur@semihalf.com>
Thu, 10 May 2007 14:55:52 +0000 (16:55 +0200)
definition.

include/configs/motionpro.h

index f1f7e2ba03ac36b174b230a30368c63aea614f48..e6e0eb1ff51438949880432c2477a3f19d59647a 100644 (file)
@@ -51,6 +51,7 @@
                                CFG_CMD_PING    | \
                                CFG_CMD_IDE     | \
                                CFG_CMD_FAT     | \
+                               CFG_CMD_JFFS2   | \
                                CFG_CMD_I2C     | \
                                CFG_CMD_DATE    | \
                                CFG_CMD_EEPROM)
 #define CFG_MAX_FLASH_SECT     256     /* max num of sects on one chip */
 #define CONFIG_FLASH_16BIT             /* Flash is 16-bit */
 
+/*
+ * MTD configuration
+ */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=motionpro-0"
+#define MTDPARTS_DEFAULT       "mtdparts=motionpro-0:"                   \
+                                       "13m(fs),2m(kernel),256k(uboot)," \
+                                       "64k(env),64k(dtb),-(user_data)"
 
 /*
  * IDE/ATA configuration