Skip to content

Commit

Permalink
cpufreq: Fix t6022 clusters
Browse files Browse the repository at this point in the history
We were only initializing the first die...

Signed-off-by: Hector Martin <marcan@marcan.st>
  • Loading branch information
marcan committed Oct 8, 2023
1 parent 12ba00d commit 6de6956
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 6de6956

Please sign in to comment.