]> git.sur5r.net Git - u-boot/blob - arch/arm/mach-uniphier/init/init-ld4.c
ARM: uniphier: reuse uniphier_cache_disable() for lowlevel_init
[u-boot] / arch / arm / mach-uniphier / init / init-ld4.c
1 /*
2  * Copyright (C) 2013-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include <common.h>
8 #include <spl.h>
9
10 #include "../init.h"
11 #include "../micro-support-card.h"
12
13 int uniphier_ld4_init(const struct uniphier_board_data *bd)
14 {
15         uniphier_ld4_bcu_init(bd);
16
17         uniphier_sbc_init_savepin(bd);
18         uniphier_ld4_sbc_init(bd);
19
20         support_card_reset();
21
22         uniphier_ld4_pll_init(bd);
23
24         support_card_init();
25
26         led_puts("L0");
27
28         memconf_init(bd);
29
30         led_puts("L1");
31
32         uniphier_ld4_early_clk_init(bd);
33
34         led_puts("L2");
35
36         led_puts("L3");
37
38 #ifdef CONFIG_SPL_SERIAL_SUPPORT
39         preloader_console_init();
40 #endif
41
42         led_puts("L4");
43
44         {
45                 int res;
46
47                 res = uniphier_ld4_umc_init(bd);
48                 if (res < 0) {
49                         while (1)
50                                 ;
51                 }
52         }
53
54         led_puts("L5");
55
56         uniphier_ld4_enable_dpll_ssc(bd);
57
58         led_puts("L6");
59
60         return 0;
61 }