ARM: uniphier: remove kernel parameter settings from environment
[platform/kernel/u-boot.git] / arch / arm / mach-uniphier / spl.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 <linux/compiler.h>
10 #include <mach/micro-support-card.h>
11
12 void __weak bcu_init(void)
13 {
14 };
15
16 void __weak sbc_init(void)
17 {
18 };
19
20 void __weak sg_init(void)
21 {
22 };
23
24 void __weak early_pin_init(void)
25 {
26 };
27
28 void sbc_init(void);
29 void sg_init(void);
30 void pll_init(void);
31 void pin_init(void);
32 void memconf_init(void);
33 void early_clkrst_init(void);
34 void early_pin_init(void);
35 int umc_init(void);
36 void enable_dpll_ssc(void);
37
38 void spl_board_init(void)
39 {
40         bcu_init();
41
42         sbc_init();
43
44         sg_init();
45
46         support_card_reset();
47
48         pll_init();
49
50         support_card_init();
51
52         led_puts("L0");
53
54         memconf_init();
55
56         led_puts("L1");
57
58         early_clkrst_init();
59
60         led_puts("L2");
61
62         early_pin_init();
63
64         led_puts("L3");
65
66 #ifdef CONFIG_SPL_SERIAL_SUPPORT
67         preloader_console_init();
68 #endif
69
70         led_puts("L4");
71
72         {
73                 int res;
74
75                 res = umc_init();
76                 if (res < 0) {
77                         while (1)
78                                 ;
79                 }
80         }
81
82         led_puts("L5");
83
84         enable_dpll_ssc();
85
86         led_puts("L6");
87 }