]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/mach-uniphier/init/init-ld11.c
ARM: uniphier: refactor Support Card init code
[people/ms/u-boot.git] / arch / arm / mach-uniphier / init / init-ld11.c
CommitLineData
667dbcd0
MY
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
14int uniphier_ld11_init(const struct uniphier_board_data *bd)
15{
9e3bb84b 16 uniphier_ld11_sbc_init();
667dbcd0 17
667dbcd0
MY
18 support_card_init();
19
20 led_puts("L0");
21
8d6c99c6 22 uniphier_memconf_2ch_init(bd);
667dbcd0
MY
23
24 led_puts("L1");
25
78c627cf
MY
26 uniphier_ld11_early_clk_init();
27 uniphier_ld11_dram_clk_init();
667dbcd0
MY
28
29 led_puts("L2");
30
667dbcd0
MY
31#ifdef CONFIG_SPL_SERIAL_SUPPORT
32 preloader_console_init();
33#endif
34
c72f4d4c
MY
35 led_puts("L3");
36
37 uniphier_ld11_dpll_init(bd);
38
667dbcd0
MY
39 led_puts("L4");
40
41 {
42 int res;
43
44 res = uniphier_ld11_umc_init(bd);
45 if (res < 0) {
46 while (1)
47 ;
48 }
49 }
50
51 led_puts("L5");
52
53 dcache_disable();
54
55 led_puts("L6");
56
57 return 0;
58}