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