summaryrefslogtreecommitdiffstats
path: root/board/logicpd/am3517evm/am3517evm.c
diff options
context:
space:
mode:
authorAdam Ford <aford173@gmail.com>2019-03-31 09:18:29 -0500
committerTom Rini <trini@konsulko.com>2019-04-12 08:05:56 -0400
commit86034a959a91fbb09fb02af708764a544161df9b (patch)
treefeca3b9e52f5c4f17962b6b1e492f75249f1e5f0 /board/logicpd/am3517evm/am3517evm.c
parent9c4b0131d1d06dc87cecd08f065ec9b5c0f08b0f (diff)
downloadu-boot-86034a959a91fbb09fb02af708764a544161df9b.tar.gz
u-boot-86034a959a91fbb09fb02af708764a544161df9b.tar.xz
u-boot-86034a959a91fbb09fb02af708764a544161df9b.zip
ARM: am3517_evm: Add spl_start_uboot for Falcon Mode
When booting the am3517-evm, the following message appears: SPL: Please implement spl_start_uboot() for your board SPL: Direct Linux boot not active! This patch implements spl_start_uboot to clear this message and allow device to know if it should boot U-Boot or kernel. Fixes: 1c6b6f383a41 ("ARM: am3517_evm: Enable Falcon Mode") Signed-off-by: Adam Ford <aford173@gmail.com>
Diffstat (limited to 'board/logicpd/am3517evm/am3517evm.c')
-rw-r--r--board/logicpd/am3517evm/am3517evm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/logicpd/am3517evm/am3517evm.c b/board/logicpd/am3517evm/am3517evm.c
index 6f728398c3..10031a4801 100644
--- a/board/logicpd/am3517evm/am3517evm.c
+++ b/board/logicpd/am3517evm/am3517evm.c
@@ -37,6 +37,15 @@ DECLARE_GLOBAL_DATA_PTR;
#define CPGMACSS_SW_RST (1 << 1)
#define PHY_GPIO 30
+#if defined(CONFIG_SPL_BUILD)
+#if defined(CONFIG_SPL_OS_BOOT)
+int spl_start_uboot(void)
+{
+ /* break into full u-boot on 'c' */
+ return serial_tstc() && serial_getc() == 'c';
+}
+#endif
+#endif
/*
* Routine: board_init