blob: 741e88c212f0f8002c7e46d06d8303be7edbeb84 [file] [log] [blame]
Masahiro Yamada323d1f92015-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>
9#include <linux/compiler.h>
10#include <mach/init.h>
11#include <mach/micro-support-card.h>
12
13int ph1_sld8_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_sld8_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_sld8_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}