Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 1 | /* |
2 | * Copyright (C) 2013-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 | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 12 | |
Masahiro Yamada | 9890569 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 13 | int uniphier_sld3_init(const struct uniphier_board_data *bd) |
Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 14 | { |
Masahiro Yamada | 9890569 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 15 | uniphier_sld3_bcu_init(bd); |
Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 16 | |
Masahiro Yamada | 9890569 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 17 | uniphier_sbc_init_admulti(bd); |
Masahiro Yamada | 9b4ebb0 | 2016-04-28 15:37:16 +0900 | [diff] [blame] | 18 | |
19 | uniphier_sld3_early_pin_init(bd); | ||||
Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 20 | |
21 | support_card_reset(); | ||||
22 | |||||
Masahiro Yamada | 9890569 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 23 | uniphier_sld3_pll_init(bd); |
Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 24 | |
25 | support_card_init(); | ||||
26 | |||||
27 | led_puts("L0"); | ||||
28 | |||||
29 | memconf_init(bd); | ||||
Masahiro Yamada | 9890569 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 30 | uniphier_sld3_memconf_init(bd); |
Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 31 | |
32 | led_puts("L1"); | ||||
33 | |||||
Masahiro Yamada | 9890569 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 34 | uniphier_ld4_early_clk_init(bd); |
Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 35 | |
36 | led_puts("L2"); | ||||
37 | |||||
Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 38 | led_puts("L3"); |
39 | |||||
40 | #ifdef CONFIG_SPL_SERIAL_SUPPORT | ||||
41 | preloader_console_init(); | ||||
42 | #endif | ||||
43 | |||||
44 | led_puts("L4"); | ||||
45 | |||||
46 | led_puts("L5"); | ||||
47 | |||||
Masahiro Yamada | 9890569 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 48 | uniphier_sld3_enable_dpll_ssc(bd); |
Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 49 | |
50 | led_puts("L6"); | ||||
51 | |||||
52 | return 0; | ||||
53 | } |