Merge branch 'master' of git://git.denx.de/u-boot-sunxi
[oweals/u-boot.git] / arch / arm / mach-rockchip / rk3036-board-spl.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2015 Rockchip Electronics Co., Ltd
4  */
5
6 #include <common.h>
7 #include <debug_uart.h>
8 #include <asm/io.h>
9 #include <asm/arch-rockchip/bootrom.h>
10 #include <asm/arch-rockchip/sdram_rk3036.h>
11 #include <asm/arch-rockchip/timer.h>
12
13 void board_init_f(ulong dummy)
14 {
15 #ifdef CONFIG_DEBUG_UART
16         debug_uart_init();
17 #endif
18         rockchip_timer_init();
19         sdram_init();
20
21         /* return to maskrom */
22         back_to_bootrom(BROM_BOOT_NEXTSTAGE);
23 }
24
25 /* Place Holders */
26 void board_init_r(gd_t *id, ulong dest_addr)
27 {
28         /*
29          * Function attribute is no-return
30          * This Function never executes
31          */
32         while (1)
33                 ;
34 }