From: Yu-Chien Peter Lin <peter.lin@sifive.com>
To: opensbi@lists.infradead.org
Cc: zong.li@sifive.com, greentime.hu@sifive.com,
Yu-Chien Peter Lin <peter.lin@sifive.com>
Subject: [RFC PATCH 1/3] platform: sifive: Add initial support for SiFive development platform
Date: Tue, 24 Feb 2026 11:17:31 +0800 [thread overview]
Message-ID: <20260224031733.3817148-1-peter.lin@sifive.com> (raw)
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>
---
platform/generic/Kconfig | 4 ++++
platform/generic/configs/defconfig | 1 +
platform/generic/sifive/objects.mk | 3 +++
platform/generic/sifive/sifive_dev_platform.c | 23 +++++++++++++++++++
4 files changed, 31 insertions(+)
create mode 100644 platform/generic/sifive/sifive_dev_platform.c
diff --git a/platform/generic/Kconfig b/platform/generic/Kconfig
index 0c11fbd2c..eaa972b73 100644
--- a/platform/generic/Kconfig
+++ b/platform/generic/Kconfig
@@ -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
diff --git a/platform/generic/configs/defconfig b/platform/generic/configs/defconfig
index 19a73a247..347ca56d9 100644
--- a/platform/generic/configs/defconfig
+++ b/platform/generic/configs/defconfig
@@ -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
diff --git a/platform/generic/sifive/objects.mk b/platform/generic/sifive/objects.mk
index d75e444ab..d32e1273d 100644
--- a/platform/generic/sifive/objects.mk
+++ b/platform/generic/sifive/objects.mk
@@ -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
diff --git a/platform/generic/sifive/sifive_dev_platform.c b/platform/generic/sifive/sifive_dev_platform.c
new file mode 100644
index 000000000..facc044f1
--- /dev/null
+++ b/platform/generic/sifive/sifive_dev_platform.c
@@ -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,
+};
--
2.43.7
--
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi
next reply other threads:[~2026-02-24 3:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-24 3:17 Yu-Chien Peter Lin [this message]
2026-02-24 3:17 ` [RFC PATCH 2/3] lib: sbi_init: Call hart init before platform early init Yu-Chien Peter Lin
2026-03-22 5:58 ` Anup Patel
2026-02-24 3:17 ` [RFC PATCH 3/3] sifive_dev_platform: Set default MMIO region when SmePMP is enabled Yu-Chien Peter Lin
2026-04-06 5:40 ` Anup Patel
2026-04-06 5:40 ` [RFC PATCH 1/3] platform: sifive: Add initial support for SiFive development platform Anup Patel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260224031733.3817148-1-peter.lin@sifive.com \
--to=peter.lin@sifive.com \
--cc=greentime.hu@sifive.com \
--cc=opensbi@lists.infradead.org \
--cc=zong.li@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox