Tianrui Wei | 8a44fe6 | 2021-07-01 12:54:19 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (c) 2019 SiFive, Inc |
| 4 | * Copyright (c) 2021 Tianrui Wei |
| 5 | * |
| 6 | * |
| 7 | * Authors: |
| 8 | * Pragnesh Patel <pragnesh.patel@sifive.com> |
| 9 | * Tianrui Wei <tianrui-wei@outlook.com> |
| 10 | */ |
| 11 | #include <common.h> |
| 12 | #include <init.h> |
| 13 | #include <configs/openpiton-riscv64.h> |
| 14 | #include <dm.h> |
| 15 | #include <spl.h> |
| 16 | |
| 17 | #ifdef CONFIG_SPL |
| 18 | void board_boot_order(u32 *spl_boot_list) |
| 19 | { |
| 20 | u8 i; |
| 21 | u32 boot_devices[] = { |
| 22 | BOOT_DEVICE_MMC1, |
| 23 | }; |
| 24 | |
| 25 | for (i = 0; i < ARRAY_SIZE(boot_devices); i++) |
| 26 | spl_boot_list[i] = boot_devices[i]; |
| 27 | } |
| 28 | #endif |
| 29 | |
| 30 | int board_init(void) |
| 31 | { |
| 32 | return 0; |
| 33 | } |