Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
huang lin | be1d5e0 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2015 Rockchip Electronics Co., Ltd |
huang lin | be1d5e0 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Simon Glass | 9b20519 | 2015-12-13 21:37:00 -0700 | [diff] [blame] | 7 | #include <debug_uart.h> |
huang lin | be1d5e0 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 8 | #include <asm/io.h> |
Kever Yang | 15f09a1 | 2019-03-28 11:01:23 +0800 | [diff] [blame] | 9 | #include <asm/arch-rockchip/bootrom.h> |
Kever Yang | 15f09a1 | 2019-03-28 11:01:23 +0800 | [diff] [blame] | 10 | #include <asm/arch-rockchip/sdram_rk3036.h> |
| 11 | #include <asm/arch-rockchip/timer.h> |
huang lin | be1d5e0 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 12 | |
huang lin | be1d5e0 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 13 | void board_init_f(ulong dummy) |
| 14 | { |
Kever Yang | 7f3eec0 | 2019-03-29 09:09:00 +0800 | [diff] [blame] | 15 | #ifdef CONFIG_DEBUG_UART |
Simon Glass | 9b20519 | 2015-12-13 21:37:00 -0700 | [diff] [blame] | 16 | debug_uart_init(); |
huang lin | be1d5e0 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 17 | #endif |
| 18 | rockchip_timer_init(); |
| 19 | sdram_init(); |
| 20 | |
| 21 | /* return to maskrom */ |
Philipp Tomsich | b82bd1f | 2017-10-10 16:21:16 +0200 | [diff] [blame] | 22 | back_to_bootrom(BROM_BOOT_NEXTSTAGE); |
huang lin | be1d5e0 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 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 | } |