Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
huang lin | 1115b64 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2015 Rockchip Electronics Co., Ltd |
huang lin | 1115b64 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Simon Glass | e0f177b | 2015-12-13 21:37:00 -0700 | [diff] [blame] | 7 | #include <debug_uart.h> |
huang lin | 1115b64 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 8 | #include <asm/io.h> |
Kever Yang | 9fbe17c | 2019-03-28 11:01:23 +0800 | [diff] [blame] | 9 | #include <asm/arch-rockchip/bootrom.h> |
Kever Yang | 9fbe17c | 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 | 1115b64 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 12 | |
huang lin | 1115b64 | 2015-11-17 14:20:27 +0800 | [diff] [blame] | 13 | void board_init_f(ulong dummy) |
| 14 | { |
Kever Yang | b877fa0 | 2019-03-29 09:09:00 +0800 | [diff] [blame] | 15 | #ifdef CONFIG_DEBUG_UART |
Simon Glass | e0f177b | 2015-12-13 21:37:00 -0700 | [diff] [blame] | 16 | debug_uart_init(); |
huang lin | 1115b64 | 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 | 7234c73 | 2017-10-10 16:21:16 +0200 | [diff] [blame] | 22 | back_to_bootrom(BROM_BOOT_NEXTSTAGE); |
huang lin | 1115b64 | 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 | } |