Skip to content

Commit a925356

Browse files
dberlinmarcan
authored andcommitted
Add initial M3 values for CPU_START_OFF
I only can easily find the T6031/T6034/T8122 values. If there is a T6030, the value is not in the same place I found these. Signed-off-by: Daniel Berlin <[email protected]>
1 parent 93cce40 commit a925356

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/smp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define CPU_START_OFF_T8103 0x54000
1414
#define CPU_START_OFF_T8112 0x34000
1515
#define CPU_START_OFF_T6020 0x28000
16+
#define CPU_START_OFF_T6031 0x88000
1617

1718
#define CPU_REG_CORE GENMASK(7, 0)
1819
#define CPU_REG_CLUSTER GENMASK(10, 8)
@@ -206,13 +207,18 @@ void smp_start_secondaries(void)
206207
cpu_start_off = CPU_START_OFF_T8103;
207208
break;
208209
case T8112:
210+
case T8122:
209211
cpu_start_off = CPU_START_OFF_T8112;
210212
break;
211213
case T6020:
212214
case T6021:
213215
case T6022:
214216
cpu_start_off = CPU_START_OFF_T6020;
215217
break;
218+
case T6031:
219+
case T6034:
220+
cpu_start_off = CPU_START_OFF_T6031;
221+
break;
216222
default:
217223
printf("CPU start offset is unknown for this SoC!\n");
218224
return;

src/soc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@
77

88
#define T8103 0x8103
99
#define T8112 0x8112
10+
#define T8122 0x8122
1011
#define T6000 0x6000
1112
#define T6001 0x6001
1213
#define T6002 0x6002
1314
#define T6020 0x6020
1415
#define T6021 0x6021
1516
#define T6022 0x6022
17+
#define T6031 0x6031
18+
#define T6034 0x6034
1619

1720
#ifdef TARGET
1821

0 commit comments

Comments
 (0)