ARM: rmobile: Split U-Boot and SPL sources on Porter
PATCH 1/1 ARM: rmobile: Split U-Boot and SPL sources on Porter
Pull the SPL code from porter.c into a separate file in preparation for the addition of system initialization code. No functional change.
Signed-off-by Marek Vasut <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
--- board/renesas/porter/Makefile | 4 +++ board/renesas/porter/porter.c | 22 ---------------- board/renesas/porter/porter_spl.c | 55 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 22 deletions(-) create mode 100644 board/renesas/porter/porter_spl.c
board/renesas/porter/Makefile +4 -0
@@ -7,4 +7,8 @@ # SPDX-License-Identifier: GPL-2.0 # +ifdef CONFIG_SPL_BUILD +obj-y := porter_spl.o +else obj-y := porter.o qos.o +endif
board/renesas/porter/porter.c +0 -22
@@ -136,25 +136,3 @@ void reset_cpu(ulong addr)if (ret)hang (); } - -#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
board/renesas/porter/porter_spl.c new file +55 -0
55 lines not on this page · raw message
Signature · 1 line
2.16.2