Masahiro Yamada | 667dbcd | 2016-05-24 21:14:01 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 Socionext Inc. |
| 3 | * Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
| 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_ld11_init(const struct uniphier_board_data *bd) |
| 15 | { |
| 16 | uniphier_sbc_init_savepin(bd); |
| 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 | 667dbcd | 2016-05-24 21:14:01 +0900 | [diff] [blame] | 19 | |
| 20 | support_card_reset(); |
| 21 | |
| 22 | support_card_init(); |
| 23 | |
| 24 | led_puts("L0"); |
| 25 | |
| 26 | memconf_init(bd); |
| 27 | |
| 28 | led_puts("L1"); |
| 29 | |
| 30 | uniphier_ld11_early_clk_init(bd); |
| 31 | |
| 32 | led_puts("L2"); |
| 33 | |
| 34 | led_puts("L3"); |
| 35 | |
| 36 | #ifdef CONFIG_SPL_SERIAL_SUPPORT |
| 37 | preloader_console_init(); |
| 38 | #endif |
| 39 | |
| 40 | led_puts("L4"); |
| 41 | |
| 42 | { |
| 43 | int res; |
| 44 | |
| 45 | res = uniphier_ld11_umc_init(bd); |
| 46 | if (res < 0) { |
| 47 | while (1) |
| 48 | ; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | led_puts("L5"); |
| 53 | |
| 54 | dcache_disable(); |
| 55 | |
| 56 | led_puts("L6"); |
| 57 | |
| 58 | return 0; |
| 59 | } |