Masahiro Yamada | 019df87 | 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 | 107b3fb | 2016-01-09 01:51:13 +0900 | [diff] [blame] | 9 | |
10 | #include "../init.h" | ||||
11 | #include "../micro-support-card.h" | ||||
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 12 | |
Masahiro Yamada | 5b66006 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 13 | int uniphier_pxs2_init(const struct uniphier_board_data *bd) |
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 14 | { |
Masahiro Yamada | 15607d0 | 2016-01-09 01:51:14 +0900 | [diff] [blame] | 15 | int ret; |
16 | |||||
Masahiro Yamada | 9e3bb84 | 2017-01-15 14:59:05 +0900 | [diff] [blame] | 17 | uniphier_pxs2_sbc_init(); |
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 18 | |
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 19 | support_card_init(); |
20 | |||||
21 | led_puts("L0"); | ||||
22 | |||||
Masahiro Yamada | 8d6c99c | 2017-01-15 14:59:04 +0900 | [diff] [blame] | 23 | uniphier_memconf_3ch_init(bd); |
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 24 | |
25 | led_puts("L1"); | ||||
26 | |||||
Masahiro Yamada | 78c627c | 2017-01-15 14:59:03 +0900 | [diff] [blame] | 27 | uniphier_sld3_early_clk_init(); |
28 | uniphier_pxs2_dram_clk_init(); | ||||
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 29 | |
30 | led_puts("L2"); | ||||
31 | |||||
32 | led_puts("L3"); | ||||
33 | |||||
34 | #ifdef CONFIG_SPL_SERIAL_SUPPORT | ||||
35 | preloader_console_init(); | ||||
36 | #endif | ||||
37 | |||||
38 | led_puts("L4"); | ||||
39 | |||||
Masahiro Yamada | 5b66006 | 2016-03-30 20:17:02 +0900 | [diff] [blame] | 40 | ret = uniphier_pxs2_umc_init(bd); |
Masahiro Yamada | 15607d0 | 2016-01-09 01:51:14 +0900 | [diff] [blame] | 41 | if (ret) |
42 | return ret; | ||||
43 | |||||
44 | led_puts("L5"); | ||||
45 | |||||
Masahiro Yamada | 019df87 | 2015-09-22 00:27:41 +0900 | [diff] [blame] | 46 | return 0; |
47 | } |