]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/mach-uniphier/init/init-pro4.c
ARM: uniphier: refactor board_init()
[people/ms/u-boot.git] / arch / arm / mach-uniphier / init / init-pro4.c
CommitLineData
5894ca00 1/*
6a3e4274
MY
2 * Copyright (C) 2013-2015 Panasonic Corporation
3 * Copyright (C) 2015-2016 Socionext Inc.
4 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
5894ca00
MY
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9#include <common.h>
10#include <spl.h>
107b3fb4
MY
11
12#include "../init.h"
13#include "../micro-support-card.h"
35adfc4d 14
5b660066 15int uniphier_pro4_init(const struct uniphier_board_data *bd)
35adfc4d 16{
9e3bb84b 17 uniphier_sbc_init_savepin();
35adfc4d 18
ef07a99b 19 support_card_init();
35adfc4d 20
6a3e4274 21 uniphier_pro4_dpll_init(bd);
35adfc4d 22
8469700b 23 led_puts("L0");
35adfc4d 24
8d6c99c6 25 uniphier_memconf_2ch_init(bd);
35adfc4d 26
8469700b 27 led_puts("L1");
35adfc4d 28
78c627cf
MY
29 uniphier_sld3_early_clk_init();
30 uniphier_sld3_dram_clk_init();
6cc21206 31
8469700b 32 led_puts("L2");
6cc21206 33
8469700b 34 led_puts("L3");
7d1a3a67 35
499785b9
MY
36#ifdef CONFIG_SPL_SERIAL_SUPPORT
37 preloader_console_init();
38#endif
39
8469700b 40 led_puts("L4");
499785b9 41
35adfc4d
MY
42 {
43 int res;
44
5b660066 45 res = uniphier_pro4_umc_init(bd);
35adfc4d
MY
46 if (res < 0) {
47 while (1)
48 ;
49 }
50 }
8469700b
MY
51
52 led_puts("L5");
35adfc4d 53
323d1f9d 54 return 0;
5894ca00 55}