summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDetlev Zundel <dzu@denx.de>2009-09-02 17:24:57 +0200
committerStefan Roese <sr@denx.de>2009-09-10 14:38:17 +0200
commitc8355b9d9f778bd12ee19c8f34d88e13758a4efd (patch)
tree0e4c52788b0ffb9768061166ef03851012a7523a /include
parent6c97a20d0b2f56cb4f3745d94b1f96986e8cced5 (diff)
downloadu-boot-imx-c8355b9d9f778bd12ee19c8f34d88e13758a4efd.zip
u-boot-imx-c8355b9d9f778bd12ee19c8f34d88e13758a4efd.tar.gz
u-boot-imx-c8355b9d9f778bd12ee19c8f34d88e13758a4efd.tar.bz2
amcc-common.h: Use filenames from environment variables for update procedure.
Using a separate "u-boot" environment variable allows to easily specify different filenames for the update procedure. This is also in line with many other board configurations defining an "update" script. Signed-off-by: Detlev Zundel <dzu@denx.de> Acked-by: Wolfgang Denk <wd@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/amcc-common.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/configs/amcc-common.h b/include/configs/amcc-common.h
index a2b7ee8..51128a3 100644
--- a/include/configs/amcc-common.h
+++ b/include/configs/amcc-common.h
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2008
+ * (C) Copyright 2008, 2009
* Stefan Roese, DENX Software Engineering, sr@denx.de.
*
* Common configuration options for all AMCC boards
@@ -271,7 +271,8 @@
"bootm ${kernel_addr_r}\0"
#define CONFIG_AMCC_DEF_ENV_NOR_UPD \
- "load=tftp 200000 " xstr(CONFIG_HOSTNAME) "/u-boot.bin\0" \
+ "u-boot=" xstr(CONFIG_HOSTNAME) "/u-boot.bin\0" \
+ "load=tftp 200000 ${u-boot}\0" \
"update=protect off " xstr(CONFIG_SYS_MONITOR_BASE) " FFFFFFFF;" \
"era " xstr(CONFIG_SYS_MONITOR_BASE) " FFFFFFFF;" \
"cp.b ${fileaddr} " xstr(CONFIG_SYS_MONITOR_BASE) " ${filesize};" \
@@ -279,7 +280,8 @@
"upd=run load update\0" \
#define CONFIG_AMCC_DEF_ENV_NAND_UPD \
- "nload=tftp 200000 " xstr(CONFIG_HOSTNAME) "/u-boot-nand.bin\0" \
+ "u-boot-nand=" xstr(CONFIG_HOSTNAME) "/u-boot-nand.bin\0" \
+ "nload=tftp 200000 ${u-boot-nand}\0" \
"nupdate=nand erase 0 100000;nand write 200000 0 100000;" \
"setenv filesize;saveenv\0" \
"nupd=run nload nupdate\0"