]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/configs/incaip.h
Add common (with Linux) MTD partition scheme and "mtdparts" command
[people/ms/u-boot.git] / include / configs / incaip.h
index 7db3744cf4554947ef37646048dddef0e1803108..0f548a52a244720c54a28c8cbe2df84814ec57cc 100644 (file)
 #define CONFIG_NET_MULTI
 #define CONFIG_INCA_IP_SWITCH_AMDIX
 
-#define CFG_JFFS2_FIRST_BANK   1
-#define CFG_JFFS2_NUM_BANKS    1
+/*
+ * JFFS2 partitions
+ */
+/* No command line, one static partition, use all space on the device */
+#undef CONFIG_JFFS2_CMDLINE
+#define CONFIG_JFFS2_DEV               "nor1"
+#define CONFIG_JFFS2_PART_SIZE         0xFFFFFFFF
+#define CONFIG_JFFS2_PART_OFFSET       0x00000000
+
+/* mtdparts command line support */
+/*
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT         "nor0=INCA-IP Bank 0"
+#define MTDPARTS_DEFAULT       "mtdparts=INCA-IP Bank 0:192k(uboot)," \
+                                                       "64k(env)," \
+                                                       "768k(linux)," \
+                                                       "1m@3m(rootfs)," \
+                                                       "768k(linux2)," \
+                                                       "3m@5m(rootfs2)"
+*/
 
 /*-----------------------------------------------------------------------
  * Cache Configuration