]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/mach-uniphier/board_early_init_f.c
ARM: uniphier: rename function names ph1_* to uniphier_*
[people/ms/u-boot.git] / arch / arm / mach-uniphier / board_early_init_f.c
1 /*
2 * Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7 #include "init.h"
8 #include "micro-support-card.h"
9 #include "soc-info.h"
10
11 int board_early_init_f(void)
12 {
13 led_puts("U0");
14
15 switch (uniphier_get_soc_type()) {
16 #if defined(CONFIG_ARCH_UNIPHIER_SLD3)
17 case SOC_UNIPHIER_SLD3:
18 uniphier_sld3_pin_init();
19 led_puts("U1");
20 uniphier_ld4_clk_init();
21 break;
22 #endif
23 #if defined(CONFIG_ARCH_UNIPHIER_LD4)
24 case SOC_UNIPHIER_LD4:
25 uniphier_ld4_pin_init();
26 led_puts("U1");
27 uniphier_ld4_clk_init();
28 break;
29 #endif
30 #if defined(CONFIG_ARCH_UNIPHIER_PRO4)
31 case SOC_UNIPHIER_PRO4:
32 uniphier_pro4_pin_init();
33 led_puts("U1");
34 uniphier_pro4_clk_init();
35 break;
36 #endif
37 #if defined(CONFIG_ARCH_UNIPHIER_SLD8)
38 case SOC_UNIPHIER_SLD8:
39 uniphier_sld8_pin_init();
40 led_puts("U1");
41 uniphier_ld4_clk_init();
42 break;
43 #endif
44 #if defined(CONFIG_ARCH_UNIPHIER_PRO5)
45 case SOC_UNIPHIER_PRO5:
46 uniphier_pro5_pin_init();
47 led_puts("U1");
48 uniphier_pro5_clk_init();
49 break;
50 #endif
51 #if defined(CONFIG_ARCH_UNIPHIER_PXS2)
52 case SOC_UNIPHIER_PXS2:
53 uniphier_pxs2_pin_init();
54 led_puts("U1");
55 uniphier_pxs2_clk_init();
56 break;
57 #endif
58 #if defined(CONFIG_ARCH_UNIPHIER_LD6B)
59 case SOC_UNIPHIER_LD6B:
60 uniphier_ld6b_pin_init();
61 led_puts("U1");
62 uniphier_pxs2_clk_init();
63 break;
64 #endif
65 default:
66 break;
67 }
68
69 led_puts("U2");
70
71 return 0;
72 }