diff options
author | Thomas Herzmann <thomas.herzmann@keymile.com> | 2012-05-04 10:55:58 +0200 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2012-06-15 17:12:52 -0500 |
commit | c1b3d84168ad423b3932f671c0863327fb005599 (patch) | |
tree | c75c7c013ec70f4d640adbe880d043fcaa5511bf /include | |
parent | 13fff2229178ab3d7f8d6b8fda37873c7a8cb1eb (diff) | |
download | u-boot-imx-c1b3d84168ad423b3932f671c0863327fb005599.zip u-boot-imx-c1b3d84168ad423b3932f671c0863327fb005599.tar.gz u-boot-imx-c1b3d84168ad423b3932f671c0863327fb005599.tar.bz2 |
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 <thomas.herzmann@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/km/keymile-common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/configs/km/keymile-common.h b/include/configs/km/keymile-common.h index 04f39c1..b650539 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\' && " \ |