tunables_static: Add t8112 GPU tunables

Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
Asahi Lina 2022-11-30 23:55:39 +09:00 committed by Hector Martin
parent f9862415b1
commit d20d89b704

View file

@ -43,6 +43,19 @@ struct entry t600x_agx_tunables[] = {
{-1, 0, 0},
};
// TODO: check masks
struct entry t8112_agx_tunables[] = {
{0x0, 0x200, 0x200},
{0x34, 0xffffffff, 0x50014},
{0x38, 0xffffffff, 0xa003c},
{0x400, 0xc00103ff, 0xc0010001},
{0x600, 0x1ffffff, 0x1ffffff},
{0x738, 0x1ff01ff, 0x14003c},
{0x798, 0x1ff01ff, 0x14003c},
{0x800, 0x100, 0x100},
{-1, 0, 0},
};
static void tunables_apply(u64 base, struct entry *entry)
{
while (entry->offset != UINT32_MAX) {
@ -76,6 +89,9 @@ int tunables_apply_static(void)
case T8103:
ret |= power_and_apply("/arm-io/sgx", 0x205000000, t8103_agx_tunables);
break;
case T8112:
ret |= power_and_apply("/arm-io/sgx", 0x205000000, t8112_agx_tunables);
break;
case T6000:
case T6001:
case T6002: