From 6de69564bd7fb4c3a367b145e5516a21fde89201 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sun, 8 Oct 2023 19:14:33 +0900 Subject: [PATCH] cpufreq: Fix t6022 clusters We were only initializing the first die... Signed-off-by: Hector Martin --- src/cpufreq.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/cpufreq.c b/src/cpufreq.c index 4ec2f217..b34e9076 100644 --- a/src/cpufreq.c +++ b/src/cpufreq.c @@ -184,6 +184,16 @@ static const struct cluster_t t6020_clusters[] = { {}, }; +static const struct cluster_t t6022_clusters[] = { + {"ECPU0", 0x0210e00000, false, 1, 5}, + {"PCPU0", 0x0211e00000, true, 1, 6}, + {"PCPU1", 0x0212e00000, true, 1, 6}, + {"ECPU1", 0x2210e00000, false, 1, 5}, + {"PCPU2", 0x2211e00000, true, 1, 6}, + {"PCPU3", 0x2212e00000, true, 1, 6}, + {}, +}; + const struct cluster_t *cpufreq_get_clusters(void) { switch (chip_id) { @@ -198,8 +208,9 @@ const struct cluster_t *cpufreq_get_clusters(void) return t8112_clusters; case T6020: case T6021: - case T6022: return t6020_clusters; + case T6022: + return t6022_clusters; default: printf("cpufreq: Chip 0x%x is unsupported\n", chip_id); return NULL;