]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/mach-uniphier/spl.c
ARM: UniPhier: move SoC sources to mach-uniphier
[karo-tx-uboot.git] / arch / arm / mach-uniphier / spl.c
1 /*
2  * Copyright (C) 2013-2015 Panasonic Corporation
3  *   Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <common.h>
9 #include <spl.h>
10 #include <linux/compiler.h>
11 #include <asm/arch/led.h>
12 #include <asm/arch/board.h>
13
14 void __weak bcu_init(void)
15 {
16 };
17 void sbc_init(void);
18 void sg_init(void);
19 void pll_init(void);
20 void pin_init(void);
21 void clkrst_init(void);
22 int umc_init(void);
23 void enable_dpll_ssc(void);
24
25 void spl_board_init(void)
26 {
27         bcu_init();
28
29         sbc_init();
30
31         sg_init();
32
33         uniphier_board_reset();
34
35         pll_init();
36
37         uniphier_board_init();
38
39         led_write(L, 0, , );
40
41         clkrst_init();
42
43         led_write(L, 1, , );
44
45         {
46                 int res;
47
48                 res = umc_init();
49                 if (res < 0) {
50                         while (1)
51                                 ;
52                 }
53         }
54         led_write(L, 2, , );
55
56         enable_dpll_ssc();
57
58         led_write(L, 3, , );
59 }