summaryrefslogtreecommitdiff
path: root/board/ti/sdp4430/sdp.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2020-06-16 11:03:08 +0300
committerLokesh Vutla <lokeshvutla@ti.com>2020-06-16 17:00:12 +0530
commit8812ed97255a30a4f625e3d99a5108bf3e61ec95 (patch)
tree70e8edda3bade179fa54ecf46891a60f1ea591c4 /board/ti/sdp4430/sdp.c
parente58b697e3678218512c7295218425eed0e6fc829 (diff)
omap4: sdp: convert to device model
Convert omap4 sdp to device model. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'board/ti/sdp4430/sdp.c')
-rw-r--r--board/ti/sdp4430/sdp.c12
1 files changed, 12 insertions, 0 deletions
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 <init.h>
#include <net.h>
#include <twl6030.h>
+#include <serial.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/mmc_host_def.h>
@@ -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
*/