diff options
author | Tim Harvey <tharvey@gateworks.com> | 2015-05-09 01:28:42 (GMT) |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-05-21 17:07:17 (GMT) |
commit | 53940a50797d4287af1c998a251170ef65927533 (patch) | |
tree | 8d6b73de232bf9856faf46f8fc7083da1d6af2f4 /board/gateworks/gw_ventana | |
parent | 0d1ea05210f3221667f8085cf167f23f336ca0c0 (diff) | |
download | u-boot-53940a50797d4287af1c998a251170ef65927533.tar.xz |
imx: ventana: config: enable Falcon mode
Falcon mode entails the SPL booting the OS directly instead of U-Boot.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks/gw_ventana')
-rw-r--r-- | board/gateworks/gw_ventana/gw_ventana_spl.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c index 2bec428..9f5d2b1 100644 --- a/board/gateworks/gw_ventana/gw_ventana_spl.c +++ b/board/gateworks/gw_ventana/gw_ventana_spl.c @@ -14,6 +14,7 @@ #include <asm/imx-common/boot_mode.h> #include <asm/imx-common/iomux-v3.h> #include <asm/imx-common/mxc_i2c.h> +#include <environment.h> #include <spl.h> #include "gsc.h" @@ -556,6 +557,25 @@ void spl_board_init(void) setup_pmic(); } +#ifdef CONFIG_SPL_OS_BOOT +/* return 1 if we wish to boot to uboot vs os (falcon mode) */ +int spl_start_uboot(void) +{ + int ret = 1; + + debug("%s\n", __func__); +#ifdef CONFIG_SPL_ENV_SUPPORT + env_init(); + env_relocate_spec(); + debug("boot_os=%s\n", getenv("boot_os")); + if (getenv_yesno("boot_os") == 1) + ret = 0; +#endif + debug("%s booting %s\n", __func__, ret ? "uboot" : "linux"); + return ret; +} +#endif + void reset_cpu(ulong addr) { } |