m1n1.hv: Support T6021 cpustart offset

Signed-off-by: Mario Hros <git@reversity.org>
This commit is contained in:
Mario Hros 2023-02-06 23:21:42 +01:00 committed by Hector Martin
parent 049bc64e36
commit 693ebbae2b

View file

@ -1514,10 +1514,13 @@ class HV(Reloadable):
die_count = self.adt["/arm-io"].die_count if hasattr(self.adt["/arm-io"], "die-count") else 1
for die in range(0, die_count):
if self.u.adt["/chosen"].chip_id in (0x8103, 0x6000, 0x6001, 0x6002):
chip_id = self.u.adt["/chosen"].chip_id
if chip_id in (0x8103, 0x6000, 0x6001, 0x6002):
cpu_start = 0x54000 + die * 0x20_0000_0000
elif self.u.adt["/chosen"].chip_id in (0x8112,):
elif chip_id in (0x8112,):
cpu_start = 0x34000 + die * 0x20_0000_0000
elif chip_id in (0x6021,):
cpu_start = 0x28000 + die * 0x20_0000_0000
else:
self.log("CPUSTART unknown for this SoC!")
break