ARM: uniphier: remove unneeded mdelay() in PLL setting function
[oweals/u-boot.git] / arch / arm / mach-uniphier / init / init-pro4.c
1 /*
2  * Copyright (C) 2013-2015 Panasonic Corporation
3  * Copyright (C) 2015-2016 Socionext Inc.
4  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #include <common.h>
10 #include <spl.h>
11
12 #include "../init.h"
13 #include "../micro-support-card.h"
14
15 int uniphier_pro4_init(const struct uniphier_board_data *bd)
16 {
17         uniphier_sbc_init_savepin(bd);
18
19         support_card_reset();
20
21         uniphier_pro4_dpll_init(bd);
22
23         support_card_init();
24
25         led_puts("L0");
26
27         memconf_init(bd);
28
29         led_puts("L1");
30
31         uniphier_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 = uniphier_pro4_umc_init(bd);
47                 if (res < 0) {
48                         while (1)
49                                 ;
50                 }
51         }
52
53         led_puts("L5");
54
55         return 0;
56 }