[RFC PATCH 1/3] platform: sifive: Add initial support for SiFive development platform
Anup Patel
anup at brainfault.org
Sun Apr 5 22:40:32 PDT 2026
On Tue, Feb 24, 2026 at 8:47 AM Yu-Chien Peter Lin <peter.lin at sifive.com> wrote:
>
> Add initial platform support for SiFive development platforms
> with the "sifive-dev" compatible string.
>
> Reviewed-by: Greentime Hu <greentime.hu at sifive.com>
> Reviewed-by: Zong Li <zong.li at sifive.com>
> Signed-off-by: Yu-Chien Peter Lin <peter.lin at sifive.com>
Applied this patch to the riscv/opensbi repo.
Thanks,
Anup
> ---
> 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 at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
More information about the opensbi
mailing list