blob: f2282d15488866d172de5989daffc3e88ebaa6a4 [file] [log] [blame]
Tianrui Wei2ef594d2021-07-01 12:54:19 +08001// 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 */
Tom Riniabb9a042024-05-18 20:20:43 -060011#include <common.h>
Tianrui Wei2ef594d2021-07-01 12:54:19 +080012#include <init.h>
13#include <configs/openpiton-riscv64.h>
14#include <dm.h>
15#include <spl.h>
16
17#ifdef CONFIG_SPL
18void 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
30int board_init(void)
31{
32 return 0;
33}