From 8812ed97255a30a4f625e3d99a5108bf3e61ec95 Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Tue, 16 Jun 2020 11:03:08 +0300 Subject: omap4: sdp: convert to device model Convert omap4 sdp to device model. Signed-off-by: Peter Ujfalusi Signed-off-by: Tero Kristo --- board/ti/sdp4430/sdp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'board/ti') diff --git a/board/ti/sdp4430/sdp.c b/board/ti/sdp4430/sdp.c index a5b3504045..5b294ea79b 100644 --- a/board/ti/sdp4430/sdp.c +++ b/board/ti/sdp4430/sdp.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -91,6 +92,17 @@ void board_mmc_power_init(void) #endif #endif +#if defined(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 /* CONFIG_SPL_OS_BOOT */ + /* * get_board_rev() - get board revision */ -- cgit v1.2.3