]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: am3517_evm: Add spl_start_uboot for Falcon Mode
authorAdam Ford <aford173@gmail.com>
Sun, 31 Mar 2019 14:18:29 +0000 (09:18 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 12 Apr 2019 12:05:56 +0000 (08:05 -0400)
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>
board/logicpd/am3517evm/am3517evm.c

index 6f728398c38dff1c6b8301574b2c9e6fb0cc225b..10031a48018fc9b13960fe0094756a0ee6b2ac78 100644 (file)
@@ -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