summaryrefslogtreecommitdiff
path: root/include/configs/motionpro.h
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2007-05-27 17:06:36 +0200
committerBartlomiej Sieka <tur@semihalf.com>2007-05-27 17:06:36 +0200
commit4520fd4d2c450da49637216aa0e53739b61c60ac (patch)
treed9537573812abfedf9b0922d7a9c78534bc00525 /include/configs/motionpro.h
parenta26eabeec31746f06d309103690892805696e344 (diff)
downloadu-boot-imx-4520fd4d2c450da49637216aa0e53739b61c60ac.zip
u-boot-imx-4520fd4d2c450da49637216aa0e53739b61c60ac.tar.gz
u-boot-imx-4520fd4d2c450da49637216aa0e53739b61c60ac.tar.bz2
Motion-PRO: Add support for redundant environment.
Enable redundant environment, add a MTD partition for it; also add env. variable command for passing MTD partitions to the kernel command line. Signed-off-by: Piotr Kruszynski <ppk@semihalf.com> Acked-by: Bartlomiej Sieka <tur@semihalf.com>
Diffstat (limited to 'include/configs/motionpro.h')
-rw-r--r--include/configs/motionpro.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/configs/motionpro.h b/include/configs/motionpro.h
index bbd823a..8170ccb 100644
--- a/include/configs/motionpro.h
+++ b/include/configs/motionpro.h
@@ -125,6 +125,7 @@
"nfsargs=setenv bootargs root=/dev/nfs rw " \
"nfsroot=$(serverip):$(rootpath)\0" \
"fat_args=setenv bootargs rw\0" \
+ "addmtd=setenv bootargs $(bootargs) $(mtdparts)\0" \
"addip=setenv bootargs $(bootargs) " \
"ip=$(ipaddr):$(serverip):$(gatewayip):" \
"$(netmask):$(hostname):$(netdev):off panic=1 " \
@@ -269,7 +270,8 @@
#define MTDIDS_DEFAULT "nor0=motionpro-0"
#define MTDPARTS_DEFAULT "mtdparts=motionpro-0:" \
"13m(fs),2m(kernel),256k(uboot)," \
- "64k(env),64k(dtb),-(user_data)"
+ "64k(env),64k(redund_env),64k(dtb)," \
+ "-(user_data)"
/*
* IDE/ATA configuration
@@ -349,6 +351,9 @@ extern void __led_set(led_id_t id, int state);
#define CFG_ENV_SIZE 0x1000
#define CFG_ENV_SECT_SIZE 0x10000
+/* Configuration of redundant environment */
+#define CFG_ENV_ADDR_REDUND (CFG_ENV_ADDR + CFG_ENV_SECT_SIZE)
+#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
/*
* Pin multiplexing configuration