summaryrefslogtreecommitdiff
path: root/tools/env/fw_env.h
diff options
context:
space:
mode:
authorRemy Bohmer <linux@bohmer.net>2011-02-12 19:06:26 +0100
committerWolfgang Denk <wd@denx.de>2011-04-12 22:58:34 +0200
commit9eeaa8e66ce1b34ddac9ebb1f31043f473a7c176 (patch)
tree2c699b404371499f7007c97227a0d6e8e1585dc7 /tools/env/fw_env.h
parent976b38c0742dc1db13af03cae9ded4392e47182d (diff)
downloadu-boot-imx-9eeaa8e66ce1b34ddac9ebb1f31043f473a7c176.zip
u-boot-imx-9eeaa8e66ce1b34ddac9ebb1f31043f473a7c176.tar.gz
u-boot-imx-9eeaa8e66ce1b34ddac9ebb1f31043f473a7c176.tar.bz2
Add support for dataflash to U-boot environment settings tool.
* The sector size for SPI-dataflash (like AT45 flashes) are not always a power-of-2. So, the sector calculations are rewritten such that it works for either power-of-2 as any size sectors. * Make the flash sector size optional in case it is the same value as the environment size. Signed-off-by: Remy Bohmer <linux@bohmer.net>
Diffstat (limited to 'tools/env/fw_env.h')
-rw-r--r--tools/env/fw_env.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h
index 8130fa1..c83d608 100644
--- a/tools/env/fw_env.h
+++ b/tools/env/fw_env.h
@@ -34,10 +34,8 @@
#define DEVICE2_NAME "/dev/mtd2"
#define DEVICE1_OFFSET 0x0000
#define ENV1_SIZE 0x4000
-#define DEVICE1_ESIZE 0x4000
#define DEVICE2_OFFSET 0x0000
#define ENV2_SIZE 0x4000
-#define DEVICE2_ESIZE 0x4000
#define CONFIG_BAUDRATE 115200
#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */