blob: 7827ec0bdc4b4140d02cbbb99068da6360dbc780 [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_sld3_init(const struct uniphier_board_data *bd)
14{
15 ph1_sld3_bcu_init(bd);
16
17 ph1_sld3_sbc_init(bd);
18
19 support_card_reset();
20
21 ph1_sld3_pll_init(bd);
22
23 support_card_init();
24
25 led_puts("L0");
26
27 memconf_init(bd);
28 ph1_sld3_memconf_init(bd);
29
30 led_puts("L1");
31
32 ph1_ld4_early_clk_init(bd);
33
34 led_puts("L2");
35
36 ph1_sld3_early_pin_init(bd);
37
38 led_puts("L3");
39
40#ifdef CONFIG_SPL_SERIAL_SUPPORT
41 preloader_console_init();
42#endif
43
44 led_puts("L4");
45
46 led_puts("L5");
47
48 ph1_sld3_enable_dpll_ssc(bd);
49
50 led_puts("L6");
51
52 return 0;
53}