Masahiro Yamada | 1fe65d3 | 2015-09-22 00:27:41 +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 | 1fe65d3 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 12 | |
| 13 | int proxstream2_init(const struct uniphier_board_data *bd) |
| 14 | { |
Masahiro Yamada | 95e7487 | 2016-01-09 01:51:14 +0900 | [diff] [blame^] | 15 | int ret; |
| 16 | |
Masahiro Yamada | 1fe65d3 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 17 | proxstream2_sbc_init(bd); |
| 18 | |
| 19 | support_card_reset(); |
| 20 | |
| 21 | support_card_init(); |
| 22 | |
| 23 | led_puts("L0"); |
| 24 | |
| 25 | memconf_init(bd); |
| 26 | proxstream2_memconf_init(bd); |
| 27 | |
| 28 | led_puts("L1"); |
| 29 | |
| 30 | proxstream2_early_clk_init(bd); |
| 31 | |
| 32 | led_puts("L2"); |
| 33 | |
| 34 | led_puts("L3"); |
| 35 | |
| 36 | #ifdef CONFIG_SPL_SERIAL_SUPPORT |
| 37 | preloader_console_init(); |
| 38 | #endif |
| 39 | |
| 40 | led_puts("L4"); |
| 41 | |
Masahiro Yamada | 95e7487 | 2016-01-09 01:51:14 +0900 | [diff] [blame^] | 42 | ret = proxstream2_umc_init(bd); |
| 43 | if (ret) |
| 44 | return ret; |
| 45 | |
| 46 | led_puts("L5"); |
| 47 | |
Masahiro Yamada | 1fe65d3 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 48 | return 0; |
| 49 | } |