blob: a9c6d72e0b63c4f2994d77392285254088d2766f [file] [log] [blame]
Masahiro Yamada75f16f82015-09-22 00:27:39 +09001/*
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>
Masahiro Yamadaefdf3402016-01-09 01:51:13 +09009
10#include "../init.h"
11#include "../micro-support-card.h"
Masahiro Yamada75f16f82015-09-22 00:27:39 +090012
13int ph1_ld4_init(const struct uniphier_board_data *bd)
14{
15 ph1_ld4_bcu_init(bd);
16
17 ph1_ld4_sbc_init(bd);
18
19 support_card_reset();
20
21 ph1_ld4_pll_init(bd);
22
23 support_card_init();
24
25 led_puts("L0");
26
27 memconf_init(bd);
28
29 led_puts("L1");
30
31 ph1_ld4_early_clk_init(bd);
32
33 led_puts("L2");
34
35 led_puts("L3");
36
37#ifdef CONFIG_SPL_SERIAL_SUPPORT
38 preloader_console_init();
39#endif
40
41 led_puts("L4");
42
43 {
44 int res;
45
46 res = ph1_ld4_umc_init(bd);
47 if (res < 0) {
48 while (1)
49 ;
50 }
51 }
52
53 led_puts("L5");
54
55 ph1_ld4_enable_dpll_ssc(bd);
56
57 led_puts("L6");
58
59 return 0;
60}