Masahiro Yamada | d5167d5 | 2015-09-22 00:27:40 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <spl.h> |
Masahiro Yamada | efdf340 | 2016-01-09 01:51:13 +0900 | [diff] [blame] | 9 | |
| 10 | #include "../init.h" |
| 11 | #include "../micro-support-card.h" |
Masahiro Yamada | d5167d5 | 2015-09-22 00:27:40 +0900 | [diff] [blame] | 12 | |
Masahiro Yamada | 9890569 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 13 | int uniphier_pro5_init(const struct uniphier_board_data *bd) |
Masahiro Yamada | d5167d5 | 2015-09-22 00:27:40 +0900 | [diff] [blame] | 14 | { |
Masahiro Yamada | 9890569 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 15 | uniphier_sbc_init_savepin(bd); |
Masahiro Yamada | d5167d5 | 2015-09-22 00:27:40 +0900 | [diff] [blame] | 16 | |
| 17 | support_card_reset(); |
| 18 | |
| 19 | support_card_init(); |
| 20 | |
| 21 | led_puts("L0"); |
| 22 | |
| 23 | memconf_init(bd); |
| 24 | |
| 25 | led_puts("L1"); |
| 26 | |
Masahiro Yamada | 9890569 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 27 | uniphier_pro5_early_clk_init(bd); |
Masahiro Yamada | d5167d5 | 2015-09-22 00:27:40 +0900 | [diff] [blame] | 28 | |
| 29 | led_puts("L2"); |
| 30 | |
| 31 | led_puts("L3"); |
| 32 | |
| 33 | #ifdef CONFIG_SPL_SERIAL_SUPPORT |
| 34 | preloader_console_init(); |
| 35 | #endif |
| 36 | |
| 37 | led_puts("L4"); |
| 38 | |
| 39 | led_puts("L5"); |
| 40 | |
| 41 | return 0; |
| 42 | } |