summaryrefslogtreecommitdiff
path: root/board/technexion
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2019-09-11 14:30:28 -0300
committerStefano Babic <sbabic@denx.de>2019-10-08 16:35:59 +0200
commitb446ce2977e12eba8de6d04d6c608e1b1a766c9f (patch)
treec2464f5218bb3f5bf0341d4d6cdc507042597cd3 /board/technexion
parent26e85def4c8d405936444bf3f5d4c4128f44dfc3 (diff)
pico-imx7d: 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')
-rw-r--r--board/technexion/pico-imx7d/spl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/technexion/pico-imx7d/spl.c b/board/technexion/pico-imx7d/spl.c
index c55a35d864..8955622b81 100644
--- a/board/technexion/pico-imx7d/spl.c
+++ b/board/technexion/pico-imx7d/spl.c
@@ -21,6 +21,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