Skip to content

Commit

Permalink
smp: T6030 cpu start offset
Browse files Browse the repository at this point in the history
Signed-off-by: a-ramses <[email protected]>
  • Loading branch information
a-ramses committed Dec 13, 2024
1 parent 093efd2 commit 22a8e14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion proxyclient/m1n1/hv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ def cpustart_wh(base, off, data, width):
chip_id = self.u.adt["/chosen"].chip_id
if chip_id in (0x8103, 0x6000, 0x6001, 0x6002):
cpu_start = 0x54000 + die * 0x20_0000_0000
elif chip_id in (0x8112, 0x8122):
elif chip_id in (0x8112, 0x8122, 0x6030):
cpu_start = 0x34000 + die * 0x20_0000_0000
elif chip_id in (0x6020, 0x6021, 0x6022):
cpu_start = 0x28000 + die * 0x20_0000_0000
Expand Down
4 changes: 4 additions & 0 deletions src/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define CPU_START_OFF_T8103 0x54000
#define CPU_START_OFF_T8112 0x34000
#define CPU_START_OFF_T6020 0x28000
#define CPU_START_OFF_T6030 0x34000
#define CPU_START_OFF_T6031 0x88000

#define CPU_REG_CORE GENMASK(7, 0)
Expand Down Expand Up @@ -279,6 +280,9 @@ void smp_start_secondaries(void)
case T6022:
cpu_start_off = CPU_START_OFF_T6020;
break;
case T6030:
cpu_start_off = CPU_START_OFF_T6030;
break;
case T6031:
case T6034:
cpu_start_off = CPU_START_OFF_T6031;
Expand Down

0 comments on commit 22a8e14

Please sign in to comment.