mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 08:20:18 +00:00
m1n1.hv: Support T6021 cpustart offset
Signed-off-by: Mario Hros <git@reversity.org>
This commit is contained in:
parent
049bc64e36
commit
693ebbae2b
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue