riscv: sophgo: change Soc names for SG2044.

1. modify the cpu compatible attribyte to "sophgo,sg2044"
2. set the Soc name as SG2044.
This commit is contained in:
dong.yang
2024-08-28 10:32:21 +08:00
committed by xingxg2022
parent e48b09dc40
commit 91259a7058
4 changed files with 13 additions and 13 deletions

View File

@@ -58,8 +58,8 @@ config PLATFORM_SOPHGO_SG2042
select THEAD_C9XX_PMU select THEAD_C9XX_PMU
default n default n
config PLATFORM_SOPHGO_SG2260 config PLATFORM_SOPHGO_SG2044
bool "Sophgo sg2260 support" bool "Sophgo sg2044 support"
select THEAD_C9XX_PMU select THEAD_C9XX_PMU
default n default n

View File

@@ -4,7 +4,7 @@ CONFIG_PLATFORM_RENESAS_RZFIVE=y
CONFIG_PLATFORM_SIFIVE_FU540=y CONFIG_PLATFORM_SIFIVE_FU540=y
CONFIG_PLATFORM_SIFIVE_FU740=y CONFIG_PLATFORM_SIFIVE_FU740=y
CONFIG_PLATFORM_SOPHGO_SG2042=y CONFIG_PLATFORM_SOPHGO_SG2042=y
CONFIG_PLATFORM_SOPHGO_SG2260=y CONFIG_PLATFORM_SOPHGO_SG2044=y
CONFIG_PLATFORM_STARFIVE_JH7110=y CONFIG_PLATFORM_STARFIVE_JH7110=y
CONFIG_PLATFORM_THEAD=y CONFIG_PLATFORM_THEAD=y
CONFIG_FDT_GPIO=y CONFIG_FDT_GPIO=y

View File

@@ -7,5 +7,5 @@
carray-platform_override_modules-$(CONFIG_PLATFORM_SOPHGO_SG2042) += sophgo_sg2042 carray-platform_override_modules-$(CONFIG_PLATFORM_SOPHGO_SG2042) += sophgo_sg2042
platform-objs-$(CONFIG_PLATFORM_SOPHGO_SG2042) += sophgo/sg2042.o platform-objs-$(CONFIG_PLATFORM_SOPHGO_SG2042) += sophgo/sg2042.o
carray-platform_override_modules-$(CONFIG_PLATFORM_SOPHGO_SG2260) += sophgo_sg2260 carray-platform_override_modules-$(CONFIG_PLATFORM_SOPHGO_SG2044) += sophgo_sg2044
platform-objs-$(CONFIG_PLATFORM_SOPHGO_SG2260) += sophgo/sg2260.o platform-objs-$(CONFIG_PLATFORM_SOPHGO_SG2044) += sophgo/sg2044.o

View File

@@ -21,7 +21,7 @@
static u32 selected_hartid = -1; static u32 selected_hartid = -1;
static bool sg2260_cold_boot_allowed(u32 hartid, static bool sg2044_cold_boot_allowed(u32 hartid,
const struct fdt_match *match) const struct fdt_match *match)
{ {
if (selected_hartid != -1) if (selected_hartid != -1)
@@ -30,20 +30,20 @@ static bool sg2260_cold_boot_allowed(u32 hartid,
return true; return true;
} }
static int sg2260_extensions_init(const struct fdt_match *match, static int sg2044_extensions_init(const struct fdt_match *match,
struct sbi_hart_features *hfeatures) struct sbi_hart_features *hfeatures)
{ {
thead_c9xx_register_pmu_device(); thead_c9xx_register_pmu_device();
return 0; return 0;
} }
static const struct fdt_match sophgo_sg2260_match[] = { static const struct fdt_match sophgo_sg2044_match[] = {
{ .compatible = "sophgo, sg2260" }, { .compatible = "sophgo,sg2044" },
{ }, { },
}; };
const struct platform_override sophgo_sg2260 = { const struct platform_override sophgo_sg2044 = {
.match_table = sophgo_sg2260_match, .match_table = sophgo_sg2044_match,
.cold_boot_allowed = sg2260_cold_boot_allowed, .cold_boot_allowed = sg2044_cold_boot_allowed,
.extensions_init = sg2260_extensions_init, .extensions_init = sg2044_extensions_init,
}; };