]> git.sur5r.net Git - u-boot/commitdiff
igep003x: Falcon mode
authorLadislav Michl <ladis@linux-mips.org>
Sun, 25 Jun 2017 08:30:47 +0000 (10:30 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 6 Jul 2017 17:09:38 +0000 (13:09 -0400)
Implement spl_start_uboot to let Falcon mode work.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Heiko Schocher <hs@denx.de>
board/isee/igep003x/board.c
configs/am335x_igep003x_defconfig

index 2d0ebbf5ef76c642561e9799bf50a27bc8d9c5ed..e33170d65f9d102262207f47c733b5593c6cfa31 100644 (file)
@@ -166,6 +166,14 @@ void sdram_init(void)
                config_ddr(400, &ioregs_igep0034_lite, &ddr3_igep0034_lite_data,
                        &ddr3_igep0034_lite_cmd_ctrl_data, &ddr3_igep0034_lite_emif_reg_data, 0);
 }
+
+#ifdef CONFIG_SPL_OS_BOOT
+int spl_start_uboot(void)
+{
+       /* break into full u-boot on 'c' */
+       return serial_tstc() && serial_getc() == 'c';
+}
+#endif
 #endif
 
 /*
index df7d1c69aff891e639e8106ab74ec6eaecad41d6..8fc31461f19fe4f35f73281272d0423a7c2b6f76 100644 (file)
@@ -22,6 +22,7 @@ CONFIG_SPL_STACK_R=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_OS_BOOT=y
 CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_HUSH_PARSER=y