1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2017 Amarula Solutions
7 #include <debug_uart.h>
13 #include <asm/arch-rockchip/bootrom.h>
14 #include <asm/arch-rockchip/clock.h>
15 #include <asm/arch-rockchip/sys_proto.h>
16 #include <asm/arch-rockchip/timer.h>
18 void board_init_f(ulong dummy)
23 #ifdef CONFIG_DEBUG_UART
25 * Debug UART can be used from here if required:
30 * printascii("string");
34 ret = spl_early_init();
36 debug("spl_early_init() failed: %d\n", ret);
40 rockchip_timer_init();
43 ret = rockchip_get_clk(&dev);
45 debug("CLK init failed: %d\n", ret);
49 ret = uclass_get_device(UCLASS_RAM, 0, &dev);
51 debug("DRAM init failed: %d\n", ret);
56 void board_return_to_bootrom(void)
58 back_to_bootrom(BROM_BOOT_NEXTSTAGE);
61 u32 spl_boot_device(void)
63 return BOOT_DEVICE_BOOTROM;
66 void spl_board_init(void)
68 puts("\nU-Boot TPL " PLAIN_VERSION " (" U_BOOT_DATE " - " \