Skip to content

Commit

Permalink
Add initial M3 values for CPU_START_OFF
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dberlin authored and marcan committed Nov 14, 2023
1 parent 93cce40 commit a925356
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define CPU_START_OFF_T8103 0x54000
#define CPU_START_OFF_T8112 0x34000
#define CPU_START_OFF_T6020 0x28000
#define CPU_START_OFF_T6031 0x88000

#define CPU_REG_CORE GENMASK(7, 0)
#define CPU_REG_CLUSTER GENMASK(10, 8)
Expand Down Expand Up @@ -206,13 +207,18 @@ void smp_start_secondaries(void)
cpu_start_off = CPU_START_OFF_T8103;
break;
case T8112:
case T8122:
cpu_start_off = CPU_START_OFF_T8112;
break;
case T6020:
case T6021:
case T6022:
cpu_start_off = CPU_START_OFF_T6020;
break;
case T6031:
case T6034:
cpu_start_off = CPU_START_OFF_T6031;
break;
default:
printf("CPU start offset is unknown for this SoC!\n");
return;
Expand Down
3 changes: 3 additions & 0 deletions src/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@

#define T8103 0x8103
#define T8112 0x8112
#define T8122 0x8122
#define T6000 0x6000
#define T6001 0x6001
#define T6002 0x6002
#define T6020 0x6020
#define T6021 0x6021
#define T6022 0x6022
#define T6031 0x6031
#define T6034 0x6034

#ifdef TARGET

Expand Down

0 comments on commit a925356

Please sign in to comment.