platform: generic: thead: add Sophgo CV18XX/SG200X series
authorInochi Amaoto <inochiama@outlook.com>
Tue, 14 May 2024 04:53:40 +0000 (12:53 +0800)
committerAnup Patel <anup@brainfault.org>
Thu, 16 May 2024 04:48:44 +0000 (10:18 +0530)
The Sophgo CV18XX/SG200X series SoCs have a standard C906
core. Add support for it.

Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
platform/generic/thead/thead-generic.c

index 3b59a0d21c0b599ba9fcca09873abacf3781f129..c82e0c1b4148d8856339d943706503197f82991f 100644 (file)
@@ -49,7 +49,15 @@ static struct thead_generic_quirks canaan_k230_quirks = {
        .errata = THEAD_QUIRK_ERRATA_THEAD_PMU,
 };
 
+static struct thead_generic_quirks sophgo_cv1800_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 = "thead,th1520", .data = &thead_th1520_quirks },
        { .compatible = "canaan,kendryte-k230", .data = &canaan_k230_quirks },
        { },