summaryrefslogtreecommitdiff
path: root/board/esd/apc405/apc405.c
diff options
context:
space:
mode:
authorMatthias Fuchs <matthias.fuchs@esd-electronics.com>2008-04-25 12:01:39 +0200
committerStefan Roese <sr@denx.de>2008-04-25 13:37:14 +0200
commit8e048c438e20ec89b49da5f085f8f756eba6e587 (patch)
treeae55a44cdff4e0268ff8759d0470c0fa31f09fc0 /board/esd/apc405/apc405.c
parent24bfedbd0be4dcaa94861407820d6a70fea7e03b (diff)
downloadu-boot-imx-8e048c438e20ec89b49da5f085f8f756eba6e587.zip
u-boot-imx-8e048c438e20ec89b49da5f085f8f756eba6e587.tar.gz
u-boot-imx-8e048c438e20ec89b49da5f085f8f756eba6e587.tar.bz2
ppc4xx: Add bootcount limit handling for APC405 boards
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'board/esd/apc405/apc405.c')
-rw-r--r--board/esd/apc405/apc405.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/board/esd/apc405/apc405.c b/board/esd/apc405/apc405.c
index b663184..2cb743e 100644
--- a/board/esd/apc405/apc405.c
+++ b/board/esd/apc405/apc405.c
@@ -385,11 +385,16 @@ int misc_init_r(void)
}
out_be16((u16 *)(FUJI_BASE + LCDBL_PWM), 0xff);
- if (getenv("usb_self") == NULL) {
+ /*
+ * fix environment for field updated units
+ */
+ if (getenv("altbootcmd") == NULL) {
setenv("usb_load", CFG_USB_LOAD_COMMAND);
setenv("usbargs", CFG_USB_ARGS);
setenv("bootcmd", CONFIG_BOOTCOMMAND);
setenv("usb_self", CFG_USB_SELF_COMMAND);
+ setenv("bootlimit", CFG_BOOTLIMIT);
+ setenv("altbootcmd", CFG_ALT_BOOTCOMMAND);
saveenv();
}