blob: 473e0c8831b0e5c34243cc358fed721336f6385d [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
Masahiro Yamada98905692016-03-30 20:17:02 +090013int uniphier_sld3_init(const struct uniphier_board_data *bd)
Masahiro Yamada75f16f82015-09-22 00:27:39 +090014{
Masahiro Yamada98905692016-03-30 20:17:02 +090015 uniphier_sld3_bcu_init(bd);
Masahiro Yamada75f16f82015-09-22 00:27:39 +090016
Masahiro Yamada98905692016-03-30 20:17:02 +090017 uniphier_sbc_init_admulti(bd);
Masahiro Yamada7d600a62016-03-18 16:41:44 +090018 uniphier_sld3_sbc_init(bd);
Masahiro Yamada75f16f82015-09-22 00:27:39 +090019
20 support_card_reset();
21
Masahiro Yamada98905692016-03-30 20:17:02 +090022 uniphier_sld3_pll_init(bd);
Masahiro Yamada75f16f82015-09-22 00:27:39 +090023
24 support_card_init();
25
26 led_puts("L0");
27
28 memconf_init(bd);
Masahiro Yamada98905692016-03-30 20:17:02 +090029 uniphier_sld3_memconf_init(bd);
Masahiro Yamada75f16f82015-09-22 00:27:39 +090030
31 led_puts("L1");
32
Masahiro Yamada98905692016-03-30 20:17:02 +090033 uniphier_ld4_early_clk_init(bd);
Masahiro Yamada75f16f82015-09-22 00:27:39 +090034
35 led_puts("L2");
36
Masahiro Yamada98905692016-03-30 20:17:02 +090037 uniphier_sld3_early_pin_init(bd);
Masahiro Yamada75f16f82015-09-22 00:27:39 +090038
39 led_puts("L3");
40
41#ifdef CONFIG_SPL_SERIAL_SUPPORT
42 preloader_console_init();
43#endif
44
45 led_puts("L4");
46
47 led_puts("L5");
48
Masahiro Yamada98905692016-03-30 20:17:02 +090049 uniphier_sld3_enable_dpll_ssc(bd);
Masahiro Yamada75f16f82015-09-22 00:27:39 +090050
51 led_puts("L6");
52
53 return 0;
54}