aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-02-16 13:56:02 -0500
committerTom Rini <trini@konsulko.com>2018-02-16 13:56:02 -0500
commitbd650cd404b6dc870b6cc220025f35da4b31d0f4 (patch)
tree5082c02c7320fe0410624ccd1d9d6628905ca9df /board
parent7961b9f6db19d039b4e6e9c21a9715b6d5b92393 (diff)
parent5b6ae550a8d88ca8c7b5c39642fe767729422edb (diff)
downloadu-boot-bd650cd404b6dc870b6cc220025f35da4b31d0f4.zip
u-boot-bd650cd404b6dc870b6cc220025f35da4b31d0f4.tar.gz
u-boot-bd650cd404b6dc870b6cc220025f35da4b31d0f4.tar.bz2
Merge git://git.denx.de/u-boot-sh
Diffstat (limited to 'board')
-rw-r--r--board/renesas/porter/porter.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/board/renesas/porter/porter.c b/board/renesas/porter/porter.c
index 86dea8b..bd0080d 100644
--- a/board/renesas/porter/porter.c
+++ b/board/renesas/porter/porter.c
@@ -115,3 +115,25 @@ void reset_cpu(ulong addr)
val |= 0x02;
i2c_write(CONFIG_SYS_I2C_POWERIC_ADDR, 0x13, 1, &val, 1);
}
+
+#ifdef CONFIG_SPL_BUILD
+#include <spl.h>
+void board_init_f(ulong dummy)
+{
+ board_early_init_f();
+}
+
+void spl_board_init(void)
+{
+ /* UART clocks enabled and gd valid - init serial console */
+ preloader_console_init();
+}
+
+void board_boot_order(u32 *spl_boot_list)
+{
+ /* Boot from SPI NOR with YMODEM UART fallback. */
+ spl_boot_list[0] = BOOT_DEVICE_SPI;
+ spl_boot_list[1] = BOOT_DEVICE_UART;
+ spl_boot_list[2] = BOOT_DEVICE_NONE;
+}
+#endif