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