VisionFive2 OpenSBI

StarFive Tech OpenSBI for VisionFive (JH7110) boards (mirror)

1266 Commits   10 Branches   49 Tags
author: Wei Liang Lim <weiliang.lim@starfivetech.com> 2023-12-01 23:14:15 +0800 committer: Wei Liang Lim <weiliang.lim@starfivetech.com> 2023-12-01 23:14:15 +0800 commit: 8ce81d0fbcbb10d4ad9e924c8cd64925b79e0cb6 parent: a10e0837f215fb4ed25f195f2c511a41deb9c324
Commit Summary:
platform: generic: starfive: Changing naming from jh8100 to dubhe
Diffstat:
3 files changed, 9 insertions, 10 deletions
diff --git a/platform/generic/starfive/jh8100.c b/platform/generic/starfive/dubhe.c
similarity index 82%
rename from platform/generic/starfive/jh8100.c
rename to platform/generic/starfive/dubhe.c
index b11ffcf..95ef611 100644
--- a/platform/generic/starfive/jh8100.c
+++ b/platform/generic/starfive/dubhe.c
@@ -8,7 +8,7 @@
  */
 
 #include <cache.h>
-#include <jh8100.h>
+#include <dubhe.h>
 #include <platform_override.h>
 #include <sbi/sbi_console.h>
 #include <sbi_utils/fdt/fdt_helper.h>
@@ -36,13 +36,12 @@ static int starfive_vendor_ext_provider(long extid, long funcid,
 	return ret;
 }
 
-static const struct fdt_match starfive_jh8xxx_match[] = {
+static const struct fdt_match starfive_dubhe_match[] = {
 	{ .compatible = "starfive,dubhe" },
-	{ .compatible = "starfive,jh8100" },
 	{ },
 };
 
-const struct platform_override starfive_jh8xxx = {
-	.match_table = starfive_jh8xxx_match,
+const struct platform_override starfive_dubhe = {
+	.match_table = starfive_dubhe_match,
 	.vendor_ext_provider = starfive_vendor_ext_provider,
 };
diff --git a/platform/generic/starfive/jh8100.h b/platform/generic/starfive/dubhe.h
similarity index 76%
rename from platform/generic/starfive/jh8100.h
rename to platform/generic/starfive/dubhe.h
index c905f84..3326cf6 100644
--- a/platform/generic/starfive/jh8100.h
+++ b/platform/generic/starfive/dubhe.h
@@ -7,12 +7,12 @@
  *
  */
 
-#ifndef _STARFIVE_JH8100_H_
-#define _STARFIVE_JH8100_H_
+#ifndef _STARFIVE_DUBHE_H_
+#define _STARFIVE_DUBHE_H_
 
 enum sbi_ext_dubhe_cmo_fid {
 	SBI_EXT_STARFIVE_DUBHE_L2_FLUSH = 0,
 	SBI_EXT_STARFIVE_DUBHE_L2_INVALIDATE,
 };
 
-#endif /* _STARFIVE_JH8100_H_ */
+#endif /* _STARFIVE_DUBHE_H_ */
diff --git a/platform/generic/starfive/objects.mk b/platform/generic/starfive/objects.mk
index 0baa9f7..931d966 100644
--- a/platform/generic/starfive/objects.mk
+++ b/platform/generic/starfive/objects.mk
@@ -6,6 +6,6 @@
 # Author: Jun Liang Tan <junliang.tan@linux.starfivetech.com>
 #
 
-carray-platform_override_modules-y += starfive_jh8xxx
+carray-platform_override_modules-y += starfive_dubhe
 platform-objs-y += starfive/dubhe_cache.o
-platform-objs-y += starfive/jh8100.o
+platform-objs-y += starfive/dubhe.o