]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/uniphier/board_postclk_init.c
ARM: UniPhier: consolidate board_postclk_init() function
[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         bcu_init();
24
25         sbc_init();
26
27         sg_init();
28
29         uniphier_board_reset();
30
31         pll_init();
32
33         uniphier_board_init();
34
35         led_write(B, 1, , );
36
37         clkrst_init();
38
39         led_write(B, 2, , );
40
41         pin_init();
42
43         led_write(B, 3, , );
44
45         return 0;
46 }