Masahiro Yamada | 9d0c2ce | 2016-04-21 14:43:18 +0900 | [diff] [blame] | 1 | /* |
Masahiro Yamada | 68557ec | 2016-09-17 03:33:06 +0900 | [diff] [blame] | 2 | * Copyright (C) 2016 Socionext Inc. |
| 3 | * Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | 9d0c2ce | 2016-04-21 14:43:18 +0900 | [diff] [blame] | 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0+ |
| 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <spl.h> |
| 10 | |
| 11 | #include "../init.h" |
| 12 | #include "../micro-support-card.h" |
| 13 | |
| 14 | int uniphier_ld20_init(const struct uniphier_board_data *bd) |
| 15 | { |
| 16 | uniphier_sbc_init_savepin(bd); |
Masahiro Yamada | 5eb4150 | 2016-04-28 15:37:15 +0900 | [diff] [blame] | 17 | uniphier_pxs2_sbc_init(bd); |
Masahiro Yamada | 68557ec | 2016-09-17 03:33:06 +0900 | [diff] [blame] | 18 | uniphier_pin_init("system_bus_grp"); |
Masahiro Yamada | 9d0c2ce | 2016-04-21 14:43:18 +0900 | [diff] [blame] | 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_ld20_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_ld20_umc_init(bd); |
| 47 | if (res < 0) { |
| 48 | while (1) |
| 49 | ; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | led_puts("L5"); |
| 54 | |
Masahiro Yamada | 0bd2020 | 2016-05-24 21:13:57 +0900 | [diff] [blame] | 55 | dcache_disable(); |
| 56 | |
Masahiro Yamada | 9d0c2ce | 2016-04-21 14:43:18 +0900 | [diff] [blame] | 57 | return 0; |
| 58 | } |