From c1b3d84168ad423b3932f671c0863327fb005599 Mon Sep 17 00:00:00 2001 From: Thomas Herzmann Date: Fri, 4 May 2012 10:55:58 +0200 Subject: km/common: check test_bank and testpin for testboot If the testpin is asserted, first check if a test_bank variable is defined before trying to boot this test_bank. Signed-off-by: Thomas Herzmann Signed-off-by: Holger Brunck Signed-off-by: Kim Phillips --- include/configs/km/keymile-common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/configs') diff --git a/include/configs/km/keymile-common.h b/include/configs/km/keymile-common.h index 04f39c1a49..b650539126 100644 --- a/include/configs/km/keymile-common.h +++ b/include/configs/km/keymile-common.h @@ -245,7 +245,9 @@ CONFIG_KM_DEF_ENV_CONSTANTS \ "altbootcmd=run bootcmd\0" \ "bootcmd=km_checkbidhwk && " \ - " setenv bootcmd \'setenv boot_bank ${actual_bank}; " \ + "setenv bootcmd \'if km_checktestboot; then; " \ + "setenv boot_bank ${test_bank}; else; " \ + "setenv boot_bank ${actual_bank}; fi;" \ "run ${subbootcmds}; reset\' && " \ "setenv altbootcmd \'setenv boot_bank ${backup_bank}; " \ "run ${subbootcmds}; reset\' && " \ -- cgit