blob: 029c54499791c04e2fb9d0eeb9ee42277ad20ca1 [file] [log] [blame]
Masahiro Yamada1fe65d32015-09-22 00:27:41 +09001/*
2 * Copyright (C) 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 Yamada1fe65d32015-09-22 00:27:41 +090012
13int proxstream2_init(const struct uniphier_board_data *bd)
14{
Masahiro Yamada95e74872016-01-09 01:51:14 +090015 int ret;
16
Masahiro Yamada1fe65d32015-09-22 00:27:41 +090017 proxstream2_sbc_init(bd);
18
19 support_card_reset();
20
21 support_card_init();
22
23 led_puts("L0");
24
25 memconf_init(bd);
26 proxstream2_memconf_init(bd);
27
28 led_puts("L1");
29
30 proxstream2_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
Masahiro Yamada95e74872016-01-09 01:51:14 +090042 ret = proxstream2_umc_init(bd);
43 if (ret)
44 return ret;
45
46 led_puts("L5");
47
Masahiro Yamada1fe65d32015-09-22 00:27:41 +090048 return 0;
49}