mirror of
https://github.com/AsahiLinux/m1n1
synced 2025-02-16 13:48:29 +00:00
tunables_static: Add t600x GPU tunables
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
e6ffbb018b
commit
f9862415b1
1 changed files with 22 additions and 0 deletions
|
@ -26,6 +26,23 @@ struct entry t8103_agx_tunables[] = {
|
|||
{0x800, 0x100, 0x100}, {-1, 0, 0},
|
||||
};
|
||||
|
||||
// TODO: check masks
|
||||
struct entry t600x_agx_tunables[] = {
|
||||
{0x0, 0x1, 0x1},
|
||||
{0x10, 0xfff0000, 0xd0000},
|
||||
{0x14, 0x3, 0x1},
|
||||
{0x18, 0x3, 0x1},
|
||||
{0x1c, 0x3, 0x3},
|
||||
{0x20, 0x3, 0x3},
|
||||
{0x24, 0x3, 0x3},
|
||||
{0x28, 0x3, 0x3},
|
||||
{0x2c, 0x3, 0x3},
|
||||
{0x400, 0x400103ff, 0x40010001},
|
||||
{0x600, 0x1ffffff, 0x1ffffff},
|
||||
{0x800, 0x100, 0x100},
|
||||
{-1, 0, 0},
|
||||
};
|
||||
|
||||
static void tunables_apply(u64 base, struct entry *entry)
|
||||
{
|
||||
while (entry->offset != UINT32_MAX) {
|
||||
|
@ -59,6 +76,11 @@ int tunables_apply_static(void)
|
|||
case T8103:
|
||||
ret |= power_and_apply("/arm-io/sgx", 0x205000000, t8103_agx_tunables);
|
||||
break;
|
||||
case T6000:
|
||||
case T6001:
|
||||
case T6002:
|
||||
ret |= power_and_apply("/arm-io/sgx", 0x405000000, t600x_agx_tunables);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue