]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pico-imx7d: Provide a way to escape the Falcon mode
authorFabio Estevam <festevam@gmail.com>
Wed, 11 Sep 2019 17:30:28 +0000 (14:30 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:35:59 +0000 (16:35 +0200)
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>
board/technexion/pico-imx7d/spl.c

index c55a35d864a020a7613aa3677ee2991a352a2ac1..8955622b8156cc3e69d5eceb7e98be5c9681db51 100644 (file)
 #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