[U-Boot] [PATCH v5 26/26] igep00x0: Falcon mode

Ladislav Michl ladis at linux-mips.org
Tue Jul 12 20:28:34 CEST 2016


Implement spl_start_uboot to let Falcon mode work.

Signed-off-by: Ladislav Michl <ladis at linux-mips.org>
Reviewed-by: Heiko Schocher <hs at denx.de>
Acked-by: Enric Balletbo i Serra <enric.balletbo at collabora.com>
---

Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None

 board/isee/igep00x0/igep00x0.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c
index 4c52b36..808955e 100644
--- a/board/isee/igep00x0/igep00x0.c
+++ b/board/isee/igep00x0/igep00x0.c
@@ -10,6 +10,7 @@
 #include <ns16550.h>
 #include <twl4030.h>
 #include <netdev.h>
+#include <spl.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/mem.h>
@@ -122,6 +123,17 @@ void get_board_mem_timings(struct board_sdrc_timings *timings)
 		gpmc_cs0_flash = MTD_DEV_TYPE_ONENAND;
 	}
 }
+
+#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
 #endif
 
 int onenand_board_init(struct mtd_info *mtd)
-- 
2.1.4



More information about the U-Boot mailing list