mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-15 07:43:07 +00:00
8a44fe6943
This patch adds openpiton-riscv64 SOC support. In particular, this board supports a standard bootflow through zsbl->u-boot SPL-> opensbi->u-boot proper->Linux. There are separate defconfigs for building u-boot SPL and u-boot proper Signed-off-by: Tianrui Wei <tianrui-wei@outlook.com> Signed-off-by: Jonathan Balkind <jbalkind@ucsb.edu> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
33 lines
583 B
C
33 lines
583 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 2019 SiFive, Inc
|
|
* Copyright (c) 2021 Tianrui Wei
|
|
*
|
|
*
|
|
* Authors:
|
|
* Pragnesh Patel <pragnesh.patel@sifive.com>
|
|
* Tianrui Wei <tianrui-wei@outlook.com>
|
|
*/
|
|
#include <common.h>
|
|
#include <init.h>
|
|
#include <configs/openpiton-riscv64.h>
|
|
#include <dm.h>
|
|
#include <spl.h>
|
|
|
|
#ifdef CONFIG_SPL
|
|
void board_boot_order(u32 *spl_boot_list)
|
|
{
|
|
u8 i;
|
|
u32 boot_devices[] = {
|
|
BOOT_DEVICE_MMC1,
|
|
};
|
|
|
|
for (i = 0; i < ARRAY_SIZE(boot_devices); i++)
|
|
spl_boot_list[i] = boot_devices[i];
|
|
}
|
|
#endif
|
|
|
|
int board_init(void)
|
|
{
|
|
return 0;
|
|
}
|