Skip to contentSkip to conversation

ARM: am3517_evm: Add spl_start_uboot for Falcon Mode

PATCH In review Adam Ford 2 participants 2 messages Mar 31, 2019 – Apr 12, 2019

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 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")
board/logicpd/am3517evm/am3517evm.c +9 -0
index 6f728398c3..10031a4801 100644
@@ -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
Signature · 1 line
2.17.1
#1 lore raw

board/logicpd/am3517evm/am3517evm.c

Quoted 13 lines · Adam Ford

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")
board/logicpd/am3517evm/am3517evm.c +0 -0
index 6f728398c3..10031a4801 100644

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190412/8cd4c1bd/attachment.sig>