git: 28f3123ec720 - main - riscv: Add spacemit SoC files to the build

Bojan Novković <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a81f097.323a3.206fe8f5__16517.4962997966$1786900684$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by bnovkov:

URL: https://cgit.FreeBSD.org/src/commit/?id=28f3123ec720fd368efc7f7d2010163c468047ac

commit 28f3123ec720fd368efc7f7d2010163c468047ac
Author:     Bojan Novković <[email protected]>
AuthorDate: 2026-05-20 14:59:57 +0000
Commit:     Bojan Novković <[email protected]>
CommitDate: 2026-08-16 17:13:23 +0000

    riscv: Add spacemit SoC files to the build
    
    Reviewed by:    mhorne
    Differential Revision: https://reviews.freebsd.org/D57175
---
 sys/modules/dtb/spacemit/Makefile |  3 +++
 sys/riscv/conf/GENERIC            |  1 +
 sys/riscv/conf/std.spacemit       | 10 ++++++++++
 sys/riscv/spacemit/files.spacemit |  0
 4 files changed, 14 insertions(+)

diff --git a/sys/modules/dtb/spacemit/Makefile b/sys/modules/dtb/spacemit/Makefile
new file mode 100644
index 000000000000..78187cba25e1
--- /dev/null
+++ b/sys/modules/dtb/spacemit/Makefile
@@ -0,0 +1,3 @@
+DTS=	spacemit/k1-bananapi-f3.dts
+
+.include <bsd.dtb.mk>
diff --git a/sys/riscv/conf/GENERIC b/sys/riscv/conf/GENERIC
index ec248bd38813..b8b3aacfab83 100644
--- a/sys/riscv/conf/GENERIC
+++ b/sys/riscv/conf/GENERIC
@@ -223,4 +223,5 @@ include		"std.allwinner"
 include		"std.cvitek"
 include		"std.eswin"
 include		"std.sifive"
+include		"std.spacemit"
 include		"std.starfive"
diff --git a/sys/riscv/conf/std.spacemit b/sys/riscv/conf/std.spacemit
new file mode 100644
index 000000000000..3cbbda20c765
--- /dev/null
+++ b/sys/riscv/conf/std.spacemit
@@ -0,0 +1,10 @@
+#
+# SpacemiT SoC support
+#
+
+device	fdt
+device	sdhci_spacemit
+
+makeoptions	MODULES_EXTRA+="dtb/spacemit"
+
+files	"../spacemit/files.spacemit"
diff --git a/sys/riscv/spacemit/files.spacemit b/sys/riscv/spacemit/files.spacemit
new file mode 100644
index 000000000000..e69de29bb2d1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.