Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 1 | /* |
| 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> |
Masahiro Yamada | 75f16f8 | 2015-09-22 00:27:39 +0900 | [diff] [blame] | 9 | #include <mach/init.h> |
| 10 | #include <mach/micro-support-card.h> |
| 11 | |
| 12 | int ph1_sld3_init(const struct uniphier_board_data *bd) |
| 13 | { |
| 14 | ph1_sld3_bcu_init(bd); |
| 15 | |
| 16 | ph1_sld3_sbc_init(bd); |
| 17 | |
| 18 | support_card_reset(); |
| 19 | |
| 20 | ph1_sld3_pll_init(bd); |
| 21 | |
| 22 | support_card_init(); |
| 23 | |
| 24 | led_puts("L0"); |
| 25 | |
| 26 | memconf_init(bd); |
| 27 | ph1_sld3_memconf_init(bd); |
| 28 | |
| 29 | led_puts("L1"); |
| 30 | |
| 31 | ph1_ld4_early_clk_init(bd); |
| 32 | |
| 33 | led_puts("L2"); |
| 34 | |
| 35 | ph1_sld3_early_pin_init(bd); |
| 36 | |
| 37 | led_puts("L3"); |
| 38 | |
| 39 | #ifdef CONFIG_SPL_SERIAL_SUPPORT |
| 40 | preloader_console_init(); |
| 41 | #endif |
| 42 | |
| 43 | led_puts("L4"); |
| 44 | |
| 45 | led_puts("L5"); |
| 46 | |
| 47 | ph1_sld3_enable_dpll_ssc(bd); |
| 48 | |
| 49 | led_puts("L6"); |
| 50 | |
| 51 | return 0; |
| 52 | } |