diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2016-02-27 18:19:09 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-15 19:12:55 (GMT) |
commit | 7c0a4b795589511a4880ca268d03a140551e5b4e (patch) | |
tree | d936094e71feda7cda1c670d9f9437e9db705eda /include/configs | |
parent | 69847dd8f0fd8ef7a5c751a6f117879b501c39fc (diff) | |
download | u-boot-7c0a4b795589511a4880ca268d03a140551e5b4e.tar.xz |
kc1: OMAP4 reboot mode support
This adds support for the omap4 reboot mode mechanism and exports the reboot
mode via an environment variable, that is used in the boot command to make it
possible to boot from the recovery partition or fastboot.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/kc1.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/kc1.h b/include/configs/kc1.h index 185e8de..04cb320 100644 --- a/include/configs/kc1.h +++ b/include/configs/kc1.h @@ -249,6 +249,10 @@ #define CONFIG_BOOTCOMMAND \ "setenv boot_mmc_part ${kernel_mmc_part}; " \ + "if test reboot-${reboot-mode} = reboot-r; then " \ + "echo recovery; setenv boot_mmc_part ${recovery_mmc_part}; fi; " \ + "if test reboot-${reboot-mode} = reboot-b; then " \ + "echo fastboot; fastboot 0; fi; " \ "part start mmc ${boot_mmc_dev} ${boot_mmc_part} boot_mmc_start; " \ "part size mmc ${boot_mmc_dev} ${boot_mmc_part} boot_mmc_size; " \ "mmc dev ${boot_mmc_dev}; " \ |