Skip to content

Commit d20d89b

Browse files
hoshinolinamarcan
authored andcommitted
tunables_static: Add t8112 GPU tunables
Signed-off-by: Asahi Lina <[email protected]>
1 parent f986241 commit d20d89b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/tunables_static.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@ struct entry t600x_agx_tunables[] = {
4343
{-1, 0, 0},
4444
};
4545

46+
// TODO: check masks
47+
struct entry t8112_agx_tunables[] = {
48+
{0x0, 0x200, 0x200},
49+
{0x34, 0xffffffff, 0x50014},
50+
{0x38, 0xffffffff, 0xa003c},
51+
{0x400, 0xc00103ff, 0xc0010001},
52+
{0x600, 0x1ffffff, 0x1ffffff},
53+
{0x738, 0x1ff01ff, 0x14003c},
54+
{0x798, 0x1ff01ff, 0x14003c},
55+
{0x800, 0x100, 0x100},
56+
{-1, 0, 0},
57+
};
58+
4659
static void tunables_apply(u64 base, struct entry *entry)
4760
{
4861
while (entry->offset != UINT32_MAX) {
@@ -76,6 +89,9 @@ int tunables_apply_static(void)
7689
case T8103:
7790
ret |= power_and_apply("/arm-io/sgx", 0x205000000, t8103_agx_tunables);
7891
break;
92+
case T8112:
93+
ret |= power_and_apply("/arm-io/sgx", 0x205000000, t8112_agx_tunables);
94+
break;
7995
case T6000:
8096
case T6001:
8197
case T6002:

0 commit comments

Comments
 (0)