blob: 2a3dcdac845d83630b5bd627097d5ebef8f6e5cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
#include <debug_uart.h>
#include <asm/arch-rockchip/bootrom.h>
#include <asm/arch-rockchip/sdram_px30.h>
#include <asm/arch-rockchip/timer.h>
void board_init_f(ulong dummy)
{
int ret;
#if defined(CONFIG_DEBUG_UART) && defined(CONFIG_TPL_SERIAL)
debug_uart_init();
/*
* Debug UART can be used from here if required:
*
* debug_uart_init();
* printch('a');
* printhex8(0x1234);
* printascii("string");
*/
#if CONFIG_TPL_BANNER_PRINT
printascii("U-Boot TPL board init\n");
#endif
#endif
rockchip_stimer_init();
ret = sdram_init();
if (ret)
printascii("sdram_init failed\n");
/* return to maskrom */
back_to_bootrom(BROM_BOOT_NEXTSTAGE);
}
|