mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 08:20:18 +00:00
tunables_static: Add t8112 GPU tunables
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
f9862415b1
commit
d20d89b704
1 changed files with 16 additions and 0 deletions
|
@ -43,6 +43,19 @@ struct entry t600x_agx_tunables[] = {
|
||||||
{-1, 0, 0},
|
{-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)
|
static void tunables_apply(u64 base, struct entry *entry)
|
||||||
{
|
{
|
||||||
while (entry->offset != UINT32_MAX) {
|
while (entry->offset != UINT32_MAX) {
|
||||||
|
@ -76,6 +89,9 @@ int tunables_apply_static(void)
|
||||||
case T8103:
|
case T8103:
|
||||||
ret |= power_and_apply("/arm-io/sgx", 0x205000000, t8103_agx_tunables);
|
ret |= power_and_apply("/arm-io/sgx", 0x205000000, t8103_agx_tunables);
|
||||||
break;
|
break;
|
||||||
|
case T8112:
|
||||||
|
ret |= power_and_apply("/arm-io/sgx", 0x205000000, t8112_agx_tunables);
|
||||||
|
break;
|
||||||
case T6000:
|
case T6000:
|
||||||
case T6001:
|
case T6001:
|
||||||
case T6002:
|
case T6002:
|
||||||
|
|
Loading…
Reference in a new issue