summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInochi Amaoto <[email protected]>2025-01-13 15:33:12 +0800
committerAnup Patel <[email protected]>2025-02-12 18:00:18 +0530
commita7f3c159a042d7d93fcd066c6c9b5d3e39f4b11f (patch)
tree650ecaf9f096ddb9d5eb0074b8703f93be3304e1
parent82da072eb4cc502c2a8a1c0b3b6e422367651d80 (diff)
platform: generic: thead: add Sophgo SG2044
The Sophgo SG2044 is a new version of C920, although it supports sscofpmf, it still needs this pmu quirks its cores. Signed-off-by: Inochi Amaoto <[email protected]> Reviewed-by: Anup Patel <[email protected]>
-rw-r--r--platform/generic/thead/thead-generic.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/platform/generic/thead/thead-generic.c b/platform/generic/thead/thead-generic.c
index be64831c..fedb6145 100644
--- a/platform/generic/thead/thead-generic.c
+++ b/platform/generic/thead/thead-generic.c
@@ -45,21 +45,18 @@ static struct thead_generic_quirks thead_th1520_quirks = {
.errata = THEAD_QUIRK_ERRATA_TLB_FLUSH | THEAD_QUIRK_ERRATA_THEAD_PMU,
};
-static struct thead_generic_quirks canaan_k230_quirks = {
- .errata = THEAD_QUIRK_ERRATA_THEAD_PMU,
-};
-
-static struct thead_generic_quirks sophgo_cv1800_quirks = {
+static struct thead_generic_quirks thead_pmu_quirks = {
.errata = THEAD_QUIRK_ERRATA_THEAD_PMU,
};
static const struct fdt_match thead_generic_match[] = {
- { .compatible = "sophgo,cv1800b", .data = &sophgo_cv1800_quirks },
- { .compatible = "sophgo,cv1812h", .data = &sophgo_cv1800_quirks },
- { .compatible = "sophgo,sg2000", .data = &sophgo_cv1800_quirks },
- { .compatible = "sophgo,sg2002", .data = &sophgo_cv1800_quirks },
+ { .compatible = "canaan,kendryte-k230", .data = &thead_pmu_quirks },
+ { .compatible = "sophgo,cv1800b", .data = &thead_pmu_quirks },
+ { .compatible = "sophgo,cv1812h", .data = &thead_pmu_quirks },
+ { .compatible = "sophgo,sg2000", .data = &thead_pmu_quirks },
+ { .compatible = "sophgo,sg2002", .data = &thead_pmu_quirks },
+ { .compatible = "sophgo,sg2044", .data = &thead_pmu_quirks },
{ .compatible = "thead,th1520", .data = &thead_th1520_quirks },
- { .compatible = "canaan,kendryte-k230", .data = &canaan_k230_quirks },
{ },
};