mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-04-13 06:11:37 +01:00
Add initial platform support for SiFive development platforms with the "sifive-dev" compatible string. Reviewed-by: Greentime Hu <greentime.hu@sifive.com> Reviewed-by: Zong Li <zong.li@sifive.com> Signed-off-by: Yu-Chien Peter Lin <peter.lin@sifive.com> Link: https://lore.kernel.org/r/20260224031733.3817148-1-peter.lin@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>
24 lines
461 B
C
24 lines
461 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2026 SiFive Inc.
|
|
*/
|
|
|
|
#include <platform_override.h>
|
|
|
|
static int sifive_platform_init(const void *fdt, int nodeoff,
|
|
const struct fdt_match *match)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static const struct fdt_match sifive_dev_platform_match[] = {
|
|
{ .compatible = "sifive-dev" },
|
|
{ },
|
|
};
|
|
|
|
const struct fdt_driver sifive_dev_platform = {
|
|
.match_table = sifive_dev_platform_match,
|
|
.init = sifive_platform_init,
|
|
};
|