]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/uniphier/board_postclk_init.c
Merge branch 'karo-tx-uboot' into kc-merge
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / uniphier / board_postclk_init.c
1 /*
2  * Copyright (C) 2012-2014 Panasonic Corporation
3  *   Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <linux/compiler.h>
9 #include <asm/arch/led.h>
10 #include <asm/arch/board.h>
11
12 void __weak bcu_init(void)
13 {
14 };
15 void sbc_init(void);
16 void sg_init(void);
17 void pll_init(void);
18 void pin_init(void);
19 void clkrst_init(void);
20
21 int board_postclk_init(void)
22 {
23 #ifdef CONFIG_SOC_INIT
24         bcu_init();
25
26         sbc_init();
27
28         sg_init();
29
30         uniphier_board_reset();
31
32         pll_init();
33
34         uniphier_board_init();
35
36         led_write(B, 1, , );
37
38         clkrst_init();
39
40         led_write(B, 2, , );
41 #endif
42         pin_init();
43
44         led_write(B, 3, , );
45
46         return 0;
47 }