]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - arch/arm/mach-uniphier/spl.c
Merge branch 'master' of git://git.denx.de/u-boot-uniphier
[karo-tx-uboot.git] / arch / arm / mach-uniphier / spl.c
1 /*
2  * Copyright (C) 2013-2015 Panasonic Corporation
3  * Copyright (C) 2015      Socionext Inc.
4  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #include <common.h>
10 #include <spl.h>
11 #include <linux/compiler.h>
12 #include <mach/led.h>
13 #include <mach/board.h>
14
15 void __weak bcu_init(void)
16 {
17 };
18 void sbc_init(void);
19 void sg_init(void);
20 void pll_init(void);
21 void pin_init(void);
22 void memconf_init(void);
23 void early_clkrst_init(void);
24 void early_pin_init(void);
25 int umc_init(void);
26 void enable_dpll_ssc(void);
27
28 void spl_board_init(void)
29 {
30         bcu_init();
31
32         sbc_init();
33
34         sg_init();
35
36         uniphier_board_reset();
37
38         pll_init();
39
40         uniphier_board_init();
41
42         led_write(L, 0, , );
43
44         memconf_init();
45
46         led_write(L, 1, , );
47
48         early_clkrst_init();
49
50         led_write(L, 2, , );
51
52         early_pin_init();
53
54         led_write(L, 3, , );
55
56 #ifdef CONFIG_SPL_SERIAL_SUPPORT
57         preloader_console_init();
58 #endif
59
60         led_write(L, 4, , );
61
62         {
63                 int res;
64
65                 res = umc_init();
66                 if (res < 0) {
67                         while (1)
68                                 ;
69                 }
70         }
71         led_write(L, 5, , );
72
73         enable_dpll_ssc();
74
75         led_write(L, 6, , );
76 }