ARM: uniphier: split out UMC clock enable
[platform/kernel/u-boot.git] / arch / arm / mach-uniphier / init / init-pxs2.c
1 /*
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>
9
10 #include "../init.h"
11 #include "../micro-support-card.h"
12
13 int uniphier_pxs2_init(const struct uniphier_board_data *bd)
14 {
15         int ret;
16
17         uniphier_sbc_init_savepin(bd);
18         uniphier_pxs2_sbc_init(bd);
19
20         support_card_reset();
21
22         support_card_init();
23
24         led_puts("L0");
25
26         memconf_init(bd);
27         uniphier_pxs2_memconf_init(bd);
28
29         led_puts("L1");
30
31         uniphier_sld3_early_clk_init();
32         uniphier_pxs2_dram_clk_init();
33
34         led_puts("L2");
35
36         led_puts("L3");
37
38 #ifdef CONFIG_SPL_SERIAL_SUPPORT
39         preloader_console_init();
40 #endif
41
42         led_puts("L4");
43
44         ret = uniphier_pxs2_umc_init(bd);
45         if (ret)
46                 return ret;
47
48         led_puts("L5");
49
50         return 0;
51 }