summaryrefslogtreecommitdiff
path: root/include/configs/XPEDITE1K.h
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-07-17 19:01:10 -0500
committerStefan Roese <sr@denx.de>2009-07-24 06:42:32 +0200
commit767e32ad369d83f55f950e6938e68b6dba7fa65f (patch)
treef9d08123c5c29802d9074f45ba7da3d1ac358c3f /include/configs/XPEDITE1K.h
parentb88da157f9990cd2cb081e4faea4b9581b5d0e2f (diff)
downloadu-boot-imx-767e32ad369d83f55f950e6938e68b6dba7fa65f.zip
u-boot-imx-767e32ad369d83f55f950e6938e68b6dba7fa65f.tar.gz
u-boot-imx-767e32ad369d83f55f950e6938e68b6dba7fa65f.tar.bz2
xpedite1k: Store environment in flash
Previously an I2C EEPROM was used. The EEPROM had size, reliability, and access issues which are resolved by storing the environment in flash. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/configs/XPEDITE1K.h')
-rw-r--r--include/configs/XPEDITE1K.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/configs/XPEDITE1K.h b/include/configs/XPEDITE1K.h
index 0aebe27..df02d7b 100644
--- a/include/configs/XPEDITE1K.h
+++ b/include/configs/XPEDITE1K.h
@@ -129,10 +129,15 @@ extern void out32(unsigned int, unsigned long);
#define CONFIG_SYS_I2C_SLAVE 0x7f
#define CONFIG_SYS_I2C_NOPROBES {0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x5c,0x69}
-/* Environment */
-#define CONFIG_ENV_IS_IN_EEPROM 1
-#define CONFIG_ENV_SIZE 0x100 /* Size of Environment vars */
-#define CONFIG_ENV_OFFSET 0x100
+/*
+ * Environment Configuration
+ */
+#define CONFIG_ENV_IS_IN_FLASH 1
+#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128k (one sector) for env */
+#define CONFIG_ENV_SIZE 0x8000
+#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - (256 * 1024))
+
+/* EEPROM */
#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3