platform: generic: thead: add Sophgo SG2044
PATCH 1/1 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]>
--- platform/generic/thead/thead-generic.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-)
platform/generic/thead/thead-generic.c +7 -10
@@ -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 }, { }, };
Signature · 1 line
2.48.0
Anup Patel
AppliedPATCH 1/1 platform: generic: thead: add Sophgo SG2044
Quoted 5 lines · On Mon, Jan 13, 2025 at 1:04?PM Inochi Amaoto <[email protected]> wrote:
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]>
LGTM.
Reviewed-by Anup Patel <[email protected]>
Applied this patch to the riscv/opensbi repo.
Thanks,
Anup
Quoted 45 lines
--- platform/generic/thead/thead-generic.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-)platform/generic/thead/thead-generic.c +7
-11@@ -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 }, { }, }; --2.48.0
--
opensbi mailing list
opensbi at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi