aboutsummaryrefslogtreecommitdiff
path: root/board/technexion/pico-imx6ul/spl.c
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2019-09-11 14:33:44 -0300
committerStefano Babic <sbabic@denx.de>2019-10-08 16:35:59 +0200
commitf6432ecea666eb4b7cbe48bde804fb886f0a8cae (patch)
tree7f668b1cbfbc9f4bca0856cab1e2d3c9cdfd0fec /board/technexion/pico-imx6ul/spl.c
parente7cef770fbce18b1484a0fcbf690b7be74816d0a (diff)
downloadu-boot-f6432ecea666eb4b7cbe48bde804fb886f0a8cae.zip
u-boot-f6432ecea666eb4b7cbe48bde804fb886f0a8cae.tar.gz
u-boot-f6432ecea666eb4b7cbe48bde804fb886f0a8cae.tar.bz2
pico-imx6ul: Provide a way to escape the Falcon mode
When CONFIG_SPL_OS_BOOT is selected, it is still convenient to be able to escape from Falcon mode and boot to U-Boot proper. Add a mechanism that allows booting in U-Boot proper when the key 'c' is entered on console at boot time. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'board/technexion/pico-imx6ul/spl.c')
-rw-r--r--board/technexion/pico-imx6ul/spl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/technexion/pico-imx6ul/spl.c b/board/technexion/pico-imx6ul/spl.c
index 284aa40..7f520be 100644
--- a/board/technexion/pico-imx6ul/spl.c
+++ b/board/technexion/pico-imx6ul/spl.c
@@ -19,6 +19,10 @@
#ifdef CONFIG_SPL_OS_BOOT
int spl_start_uboot(void)
{
+ /* Break into full U-Boot on 'c' */
+ if (serial_tstc() && serial_getc() == 'c')
+ return 1;
+
return 0;
}
#endif