Skip to content

Commit 693ebba

Browse files
Mario Hrosmarcan
authored andcommitted
m1n1.hv: Support T6021 cpustart offset
Signed-off-by: Mario Hros <[email protected]>
1 parent 049bc64 commit 693ebba

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

proxyclient/m1n1/hv/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,10 +1514,13 @@ def cpustart_wh(base, off, data, width):
15141514
die_count = self.adt["/arm-io"].die_count if hasattr(self.adt["/arm-io"], "die-count") else 1
15151515

15161516
for die in range(0, die_count):
1517-
if self.u.adt["/chosen"].chip_id in (0x8103, 0x6000, 0x6001, 0x6002):
1517+
chip_id = self.u.adt["/chosen"].chip_id
1518+
if chip_id in (0x8103, 0x6000, 0x6001, 0x6002):
15181519
cpu_start = 0x54000 + die * 0x20_0000_0000
1519-
elif self.u.adt["/chosen"].chip_id in (0x8112,):
1520+
elif chip_id in (0x8112,):
15201521
cpu_start = 0x34000 + die * 0x20_0000_0000
1522+
elif chip_id in (0x6021,):
1523+
cpu_start = 0x28000 + die * 0x20_0000_0000
15211524
else:
15221525
self.log("CPUSTART unknown for this SoC!")
15231526
break

0 commit comments

Comments
 (0)