]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/mach-uniphier/init/init-ph1-pro4.c
ARM: uniphier: kill bogus header includes
[people/ms/u-boot.git] / arch / arm / mach-uniphier / init / init-ph1-pro4.c
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>
9 #include <mach/init.h>
10 #include <mach/micro-support-card.h>
11
12 int ph1_pro4_init(const struct uniphier_board_data *bd)
13 {
14 ph1_pro4_sbc_init(bd);
15
16 support_card_reset();
17
18 ph1_pro4_pll_init(bd);
19
20 support_card_init();
21
22 led_puts("L0");
23
24 memconf_init(bd);
25
26 led_puts("L1");
27
28 ph1_ld4_early_clk_init(bd);
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
40 {
41 int res;
42
43 res = ph1_pro4_umc_init(bd);
44 if (res < 0) {
45 while (1)
46 ;
47 }
48 }
49
50 led_puts("L5");
51
52 ph1_ld4_enable_dpll_ssc(bd);
53
54 led_puts("L6");
55
56 return 0;
57 }