blob: 110d06dba5ee032e1fcb185337a657896532527a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
huang lin1115b642015-11-17 14:20:27 +08002/*
3 * (C) Copyright 2015 Rockchip Electronics Co., Ltd
huang lin1115b642015-11-17 14:20:27 +08004 */
5
6#include <common.h>
Simon Glasse0f177b2015-12-13 21:37:00 -07007#include <debug_uart.h>
huang lin1115b642015-11-17 14:20:27 +08008#include <asm/io.h>
Kever Yang9fbe17c2019-03-28 11:01:23 +08009#include <asm/arch-rockchip/bootrom.h>
Kever Yang9fbe17c2019-03-28 11:01:23 +080010#include <asm/arch-rockchip/sdram_rk3036.h>
11#include <asm/arch-rockchip/timer.h>
huang lin1115b642015-11-17 14:20:27 +080012
huang lin1115b642015-11-17 14:20:27 +080013void board_init_f(ulong dummy)
14{
Kever Yangb877fa02019-03-29 09:09:00 +080015#ifdef CONFIG_DEBUG_UART
Simon Glasse0f177b2015-12-13 21:37:00 -070016 debug_uart_init();
huang lin1115b642015-11-17 14:20:27 +080017#endif
18 rockchip_timer_init();
19 sdram_init();
20
21 /* return to maskrom */
Philipp Tomsich7234c732017-10-10 16:21:16 +020022 back_to_bootrom(BROM_BOOT_NEXTSTAGE);
huang lin1115b642015-11-17 14:20:27 +080023}
24
25/* Place Holders */
26void 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}