diff options
author | Matthias Fuchs <matthias.fuchs@esd-electronics.com> | 2008-04-25 12:01:39 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-04-25 13:37:14 +0200 |
commit | 8e048c438e20ec89b49da5f085f8f756eba6e587 (patch) | |
tree | ae55a44cdff4e0268ff8759d0470c0fa31f09fc0 /board/esd | |
parent | 24bfedbd0be4dcaa94861407820d6a70fea7e03b (diff) |
ppc4xx: Add bootcount limit handling for APC405 boards
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'board/esd')
-rw-r--r-- | board/esd/apc405/apc405.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/board/esd/apc405/apc405.c b/board/esd/apc405/apc405.c index b663184b6d8..2cb743ef496 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(); } |