summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <[email protected]>2019-09-11 14:33:44 -0300
committerStefano Babic <[email protected]>2019-10-08 16:35:59 +0200
commitf6432ecea666eb4b7cbe48bde804fb886f0a8cae (patch)
tree7f668b1cbfbc9f4bca0856cab1e2d3c9cdfd0fec
parente7cef770fbce18b1484a0fcbf690b7be74816d0a (diff)
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 <[email protected]> Signed-off-by: Otavio Salvador <[email protected]>
-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 284aa40db67..7f520beeb08 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