From 8e048c438e20ec89b49da5f085f8f756eba6e587 Mon Sep 17 00:00:00 2001 From: Matthias Fuchs Date: Fri, 25 Apr 2008 12:01:39 +0200 Subject: ppc4xx: Add bootcount limit handling for APC405 boards Signed-off-by: Matthias Fuchs --- board/esd/apc405/apc405.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'board') 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(); } -- cgit v1.2.3