Commit b446ce2977e12eba8de6d04d6c608e1b1a766c9f

Authored by Fabio Estevam
Committed by Stefano Babic
1 parent 26e85def4c

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>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

board/technexion/pico-imx7d/spl.c
... ... @@ -21,6 +21,10 @@
21 21 #ifdef CONFIG_SPL_OS_BOOT
22 22 int spl_start_uboot(void)
23 23 {
  24 + /* Break into full U-Boot on 'c' */
  25 + if (serial_tstc() && serial_getc() == 'c')
  26 + return 1;
  27 +
24 28 return 0;
25 29 }
26 30 #endif