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