2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2015-11-17 06:20:27 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2015 Rockchip Electronics Co., Ltd
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
2015-12-14 04:37:00 +00:00
|
|
|
#include <debug_uart.h>
|
2015-11-17 06:20:27 +00:00
|
|
|
#include <asm/io.h>
|
2019-03-28 03:01:23 +00:00
|
|
|
#include <asm/arch-rockchip/bootrom.h>
|
|
|
|
#include <asm/arch-rockchip/sdram_rk3036.h>
|
|
|
|
#include <asm/arch-rockchip/timer.h>
|
2015-11-17 06:20:27 +00:00
|
|
|
|
|
|
|
void board_init_f(ulong dummy)
|
|
|
|
{
|
2019-03-29 01:09:00 +00:00
|
|
|
#ifdef CONFIG_DEBUG_UART
|
2015-12-14 04:37:00 +00:00
|
|
|
debug_uart_init();
|
2015-11-17 06:20:27 +00:00
|
|
|
#endif
|
|
|
|
rockchip_timer_init();
|
|
|
|
sdram_init();
|
|
|
|
|
|
|
|
/* return to maskrom */
|
2017-10-10 14:21:16 +00:00
|
|
|
back_to_bootrom(BROM_BOOT_NEXTSTAGE);
|
2015-11-17 06:20:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Place Holders */
|
|
|
|
void board_init_r(gd_t *id, ulong dest_addr)
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Function attribute is no-return
|
|
|
|
* This Function never executes
|
|
|
|
*/
|
|
|
|
while (1)
|
|
|
|
;
|
|
|
|
}
|