aboutsummaryrefslogtreecommitdiff
path: root/include/configs/trab.h
diff options
context:
space:
mode:
authorWolfgang Denk2005-10-06 01:46:57 +0200
committerWolfgang Denk2005-10-06 01:46:57 +0200
commit6ebc79211420cd856c9825cf3ade8bd6fd54fee5 (patch)
treec4f9c286ba69f08e876427c5e0cd99925e614608 /include/configs/trab.h
parent5ae31ee114741ff1643308d160e1918b78eb72c6 (diff)
Add JFFS2 support for TRAB board
Patch by Martin Krause, 25 Aug 2005
Diffstat (limited to 'include/configs/trab.h')
-rw-r--r--include/configs/trab.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/include/configs/trab.h b/include/configs/trab.h
index 8ffd1c96e9e..7fd3e466e7f 100644
--- a/include/configs/trab.h
+++ b/include/configs/trab.h
@@ -159,10 +159,11 @@
CFG_CMD_BSP | \
CFG_CMD_DATE | \
CFG_CMD_DHCP | \
- CFG_CMD_USB | \
CFG_CMD_FAT | \
+ CFG_CMD_JFFS2 | \
CFG_CMD_NFS | \
- CFG_CMD_SNTP )
+ CFG_CMD_SNTP | \
+ CFG_CMD_USB )
#else
#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
CONFIG_COMMANDS_ADD_HWFLOW | \
@@ -172,10 +173,11 @@
CFG_CMD_BSP | \
CFG_CMD_DATE | \
CFG_CMD_DHCP | \
- CFG_CMD_USB | \
CFG_CMD_FAT | \
+ CFG_CMD_JFFS2 | \
CFG_CMD_NFS | \
- CFG_CMD_SNTP )
+ CFG_CMD_SNTP | \
+ CFG_CMD_USB )
#endif
/* moved up */
@@ -377,6 +379,20 @@
#define CFG_MONITOR_BASE CFG_FLASH_BASE
#define CFG_MONITOR_LEN (256 << 10)
+/* Dynamic MTD partition support */
+#define CONFIG_JFFS2_CMDLINE
+#define MTDIDS_DEFAULT "nor0=0"
+
+/* production flash layout */
+#define MTDPARTS_DEFAULT "mtdparts=0:32k(Firmware1)ro," \
+ "16k(Env1)," \
+ "16k(Env2)," \
+ "320k(Firmware2)ro," \
+ "896k(Kernel)," \
+ "5376k(Root-FS)," \
+ "1408k(JFFS2)," \
+ "-(VFD)"
+
/*-----------------------------------------------------------------------
* FLASH and environment organization
*/