Skip to content

Commit 6de6956

Browse files
committed
cpufreq: Fix t6022 clusters
We were only initializing the first die... Signed-off-by: Hector Martin <[email protected]>
1 parent 12ba00d commit 6de6956

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/cpufreq.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,16 @@ static const struct cluster_t t6020_clusters[] = {
184184
{},
185185
};
186186

187+
static const struct cluster_t t6022_clusters[] = {
188+
{"ECPU0", 0x0210e00000, false, 1, 5},
189+
{"PCPU0", 0x0211e00000, true, 1, 6},
190+
{"PCPU1", 0x0212e00000, true, 1, 6},
191+
{"ECPU1", 0x2210e00000, false, 1, 5},
192+
{"PCPU2", 0x2211e00000, true, 1, 6},
193+
{"PCPU3", 0x2212e00000, true, 1, 6},
194+
{},
195+
};
196+
187197
const struct cluster_t *cpufreq_get_clusters(void)
188198
{
189199
switch (chip_id) {
@@ -198,8 +208,9 @@ const struct cluster_t *cpufreq_get_clusters(void)
198208
return t8112_clusters;
199209
case T6020:
200210
case T6021:
201-
case T6022:
202211
return t6020_clusters;
212+
case T6022:
213+
return t6022_clusters;
203214
default:
204215
printf("cpufreq: Chip 0x%x is unsupported\n", chip_id);
205216
return NULL;

0 commit comments

Comments
 (0)