From 55a3ef714f9867a9b2e18851cfdca906698e8c2f Mon Sep 17 00:00:00 2001 From: Vikas Manocha Date: Sun, 28 May 2017 12:55:13 -0700 Subject: spl: stm32f7: add kernel boot support Signed-off-by: Vikas Manocha --- board/st/stm32f746-disco/stm32f746-disco.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'board/st/stm32f746-disco') diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c index 87fa5eb48e..2bb0f02c96 100644 --- a/board/st/stm32f746-disco/stm32f746-disco.c +++ b/board/st/stm32f746-disco/stm32f746-disco.c @@ -91,6 +91,15 @@ int board_early_init_f(void) #endif #ifdef CONFIG_SPL_BUILD +#ifdef CONFIG_SPL_OS_BOOT +int spl_start_uboot(void) +{ + debug("SPL: booting kernel\n"); + /* break into full u-boot on 'c' */ + return serial_tstc() && serial_getc() == 'c'; +} +#endif + int spl_dram_init(void) { struct udevice *dev; -- cgit v1.2.3