summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-04-18 19:43:36 +0000
committerwdenk <wdenk>2004-04-18 19:43:36 +0000
commit998eaaecd46ee5f00550e30e606cb5556e0b9345 (patch)
tree3b9784427a7c1ffd08d8b912d81c78681943b82c /include
parent6e5923851ec5c11a36136abc77160d834537c4dd (diff)
downloadu-boot-imx-998eaaecd46ee5f00550e30e606cb5556e0b9345.zip
u-boot-imx-998eaaecd46ee5f00550e30e606cb5556e0b9345.tar.gz
u-boot-imx-998eaaecd46ee5f00550e30e606cb5556e0b9345.tar.bz2
* Configure PPChameleon board to use redundand environment in flash
* Configure PPChameleon board to use JFFS2 NAND support. * Added support for JFFS2 filesystem (read-only) on top of NAND flash
Diffstat (limited to 'include')
-rw-r--r--include/configs/PPChameleonEVB.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/include/configs/PPChameleonEVB.h b/include/configs/PPChameleonEVB.h
index c2c372a..d03f5c5 100644
--- a/include/configs/PPChameleonEVB.h
+++ b/include/configs/PPChameleonEVB.h
@@ -93,7 +93,8 @@
CFG_CMD_I2C | \
CFG_CMD_IRQ | \
CFG_CMD_MII | \
- CFG_CMD_NAND )
+ CFG_CMD_NAND | \
+ CFG_CMD_JFFS2)
#define CONFIG_MAC_PARTITION
#define CONFIG_DOS_PARTITION
@@ -345,10 +346,11 @@
/*-----------------------------------------------------------------------
* Environment Variable setup
*/
-#define CFG_ENV_IS_IN_EEPROM 1 /* use EEPROM for environment vars */
-#define CFG_ENV_OFFSET 0x100 /* environment starts at the beginning of the EEPROM */
-#define CFG_ENV_SIZE 0x700 /* 2048 bytes may be used for env vars*/
- /* total size of a CAT24WC16 is 2048 bytes */
+#define CFG_ENV_IS_IN_FLASH 1 /* use FLASH for environment vars */
+#define CFG_ENV_ADDR 0xFFFF8000 /* environment starts at the first small sector */
+#define CFG_ENV_SECT_SIZE 0x2000 /* 8196 bytes may be used for env vars*/
+#define CFG_ENV_ADDR_REDUND 0xFFFFA000
+#define CFG_ENV_SIZE_REDUND 0x2000
#define CFG_NVRAM_BASE_ADDR 0xF0000500 /* NVRAM base address */
#define CFG_NVRAM_SIZE 242 /* NVRAM size */
@@ -694,4 +696,10 @@
#endif /* CONFIG_NO_SERIAL_EEPROM */
+#define CONFIG_JFFS2_NAND 1 /* jffs2 on nand support */
+#define CONFIG_JFFS2_NAND_DEV 0 /* nand device jffs2 lives on */
+#define CONFIG_JFFS2_NAND_OFF 0 /* start of jffs2 partition */
+#define CONFIG_JFFS2_NAND_SIZE 2*1024*1024 /* size of jffs2 partition */
+#define NAND_CACHE_PAGES 16 /* size of nand cache in 512 bytes pages */
+
#endif /* __CONFIG_H */