cpufreq: Add T8112 clusters

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2022-06-27 19:02:14 +09:00
parent efc83f61da
commit 55ca4855a5

View file

@ -80,6 +80,12 @@ static const struct cluster_t t6002_clusters[] = {
{}, {},
}; };
static const struct cluster_t t8112_clusters[] = {
{"ECPU", 0x210e20000, false, 7},
{"PCPU", 0x211e20000, true, 6},
{},
};
int cpufreq_init(void) int cpufreq_init(void)
{ {
printf("cpufreq: Initializing clusters\n"); printf("cpufreq: Initializing clusters\n");
@ -97,6 +103,9 @@ int cpufreq_init(void)
case T6002: case T6002:
cluster = t6002_clusters; cluster = t6002_clusters;
break; break;
case T8112:
cluster = t8112_clusters;
break;
default: default:
printf("cpufreq: Chip 0x%x is unsupported\n", chip_id); printf("cpufreq: Chip 0x%x is unsupported\n", chip_id);
return -1; return -1;