ARM: tegra: reduce DRAM size mapped into MMU on ARM64
[platform/kernel/u-boot.git] / arch / arm / mach-uniphier / init / init-ld11.c
1 /*
2  * Copyright (C) 2016 Socionext Inc.
3  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <common.h>
9 #include <spl.h>
10
11 #include "../init.h"
12 #include "../micro-support-card.h"
13
14 int uniphier_ld11_init(const struct uniphier_board_data *bd)
15 {
16         uniphier_sbc_init_savepin(bd);
17         uniphier_pxs2_sbc_init(bd);
18         uniphier_pin_init("system_bus_grp");
19
20         support_card_reset();
21
22         support_card_init();
23
24         led_puts("L0");
25
26         memconf_init(bd);
27
28         led_puts("L1");
29
30         uniphier_ld11_early_clk_init(bd);
31
32         led_puts("L2");
33
34 #ifdef CONFIG_SPL_SERIAL_SUPPORT
35         preloader_console_init();
36 #endif
37
38         led_puts("L3");
39
40         uniphier_ld11_dpll_init(bd);
41
42         led_puts("L4");
43
44         {
45                 int res;
46
47                 res = uniphier_ld11_umc_init(bd);
48                 if (res < 0) {
49                         while (1)
50                                 ;
51                 }
52         }
53
54         led_puts("L5");
55
56         dcache_disable();
57
58         led_puts("L6");
59
60         return 0;
61 }