mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-04-13 06:11:37 +01:00
platform: sifive: Add initial support for SiFive development platform
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>
This commit is contained in:
committed by
Anup Patel
parent
4813a20420
commit
0402b8e3dc
@@ -66,6 +66,10 @@ config PLATFORM_RENESAS_RZFIVE
|
||||
select ANDES_PMU
|
||||
default n
|
||||
|
||||
config PLATFORM_SIFIVE_DEV
|
||||
bool "SiFive development platform support"
|
||||
default n
|
||||
|
||||
config PLATFORM_SIFIVE_FU540
|
||||
bool "SiFive FU540 support"
|
||||
default n
|
||||
|
||||
@@ -5,6 +5,7 @@ CONFIG_PLATFORM_ESWIN_EIC770X=y
|
||||
CONFIG_PLATFORM_OPENHWGROUP_ARIANE=y
|
||||
CONFIG_PLATFORM_OPENHWGROUP_OPENPITON=y
|
||||
CONFIG_PLATFORM_RENESAS_RZFIVE=y
|
||||
CONFIG_PLATFORM_SIFIVE_DEV=y
|
||||
CONFIG_PLATFORM_SIFIVE_FU540=y
|
||||
CONFIG_PLATFORM_SIFIVE_FU740=y
|
||||
CONFIG_PLATFORM_SOPHGO_SG2042=y
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
#
|
||||
|
||||
carray-platform_override_modules-$(CONFIG_PLATFORM_SIFIVE_DEV) += sifive_dev_platform
|
||||
platform-objs-$(CONFIG_PLATFORM_SIFIVE_DEV) += sifive/sifive_dev_platform.o
|
||||
|
||||
carray-platform_override_modules-$(CONFIG_PLATFORM_SIFIVE_FU540) += sifive_fu540
|
||||
platform-objs-$(CONFIG_PLATFORM_SIFIVE_FU540) += sifive/fu540.o
|
||||
|
||||
|
||||
23
platform/generic/sifive/sifive_dev_platform.c
Normal file
23
platform/generic/sifive/sifive_dev_platform.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* 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,
|
||||
};
|
||||
Reference in New Issue
Block a user