m1n1.agx.initdata: Hacky t6020 support

This isn't really correct...

Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
Asahi Lina 2024-11-24 18:27:09 +09:00
parent dbc0a34777
commit ac57a991ab

View file

@ -94,7 +94,7 @@ def build_iomappings(agx, chip_id):
iomap(0x28e3d0000, 0x1000, 0x1000, 1),
iomap(0x28e3c0000, 0x2000, 0x2000, 0),
]
elif chip_id in (0x6021,):
elif chip_id in (0x6020, 0x6021, 0x6022):
mcc_cnt = {0x6022: 16, 0x6021: 8, 0x6020: 4}
return [
iomap(0x404d00000, 0x144000, 0x144000, 1), # Fender
@ -396,6 +396,70 @@ CHIP_INFO = {
],
rc_unk_54 = 4000,
),
0x6020: Container(
chip_id = 0x6021,
min_sram_volt = 790,
max_power = 95892,
max_freq_mhz = 1398,
unk_87c = 500,
unk_8cc = 11000,
unk_924 = [
[0.0, 8.2, 0.0, 6.9, 6.9] + [0] * 11,
[0.0, 0.0, 0.0, 6.9, 6.9] + [0] * 11,
[0.0, 8.2, 0.0, 6.9, 0.0] + [0] * 11,
[0.0, 0.0, 0.0, 6.9, 0.0] + [0] * 11,
] + ([[0] * 16] * 4),
unk_e48 = [
[0.0, 9.0, 0.0, 8.0, 8.0] + [0] * 11,
[0.0, 0.0, 0.0, 8.0, 8.0] + [0] * 11,
[0.0, 9.0, 0.0, 8.0, 0.0] + [0] * 11,
[0.0, 0.0, 0.0, 8.0, 0.0] + [0] * 11,
] + ([[0] * 16] * 4),
unk_e24 = 125,
gpu_fast_die0_sensor_mask64 = 0x40005000c000d00,
gpu_fast_die1_sensor_mask64 = 0,
gpu_fast_die0_sensor_mask64_alt = 0x140015001d001d00,
gpu_fast_die1_sensor_mask64_alt = 0,
gpu_fast_die0_sensor_present = None,
shared1_tab = [0xffff] * 16,
shared1_a4 = 0,
shared2_tab = [0x800, 0x1555, -1, -1, -1, -1, -1, -1, 0xaaaaa, 0],
shared2_unk_508 = 0xc00007,
unk_3cf4 = [1564.0, 1416.0, 1428.0, 1614.0, 0, 0, 0, 0],
unk_3d14 = [42.0, 39.0, 39.0, 44.0, 0, 0, 0, 0],
unk_3d34_0 = [547.0, 0.0, 293.0, 0.0, 547.0, 0.0, 293.0, 0.0],
unk_118ec = [
0, 2, 2,
1, 1, 90, 75, 1, 1,
1, 2, 90, 75, 1, 1,
1, 2, 90, 75, 1, 1,
1, 1, 90, 75, 1, 1,
],
hwdb_4e0 = 4,
hwdb_534 = 0,
num_cores = 40,
gpu_core = 17,
gpu_rev = 3,
hwdb_ab8 = None,
hwdb_abc = None,
hwdb_b30 = 0,
rel_max_powers = [0, 19, 26, 36, 48, 63, 79, 91, 100],
shared2_t1_coef = 11000,
shared2_t2 = [0xf07, 0x4c0, 0x680, 0x8c0, 0xa80, 0xc40, 0xd80, 0xec0, 0xf40],
shared2_t3_coefs = [None, 20.0, 27.0, 36.0, 43.0, 50.0, 55.0, 60.0, 62.0],
shared2_t3_scales = [9, 3209, 10400],
unk_hws2_0 = 700,
unk_hws2_4 = [1.0, 0.8, 0.2, 0.9, 0.1, 0.25, 0.7, 0.9],
unk_hws2_24 = 6,
sram_base = 0x404d60000,
sram_size = 0x20000,
shared3_unk = 8,
shared3_tab = [
125, 125, 125, 125, 125, 125, 125, 125,
7500, 125, 125, 125, 125, 125, 125, 125
],
rc_unk_54 = 4000,
),
}
def build_initdata(agx):
sgx = agx.u.adt["/arm-io/sgx"]