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