File tree Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -1269,6 +1269,7 @@ def check_no_undef_outside_kconfig(self, kconf):
1269
1269
"GEN_UICR_SECONDARY" , # Used in specialized build tool, not part of main Kconfig
1270
1270
"GEN_UICR_SECONDARY_GENERATE_PERIPHCONF" , # Used in specialized build tool, not part of main Kconfig
1271
1271
"GEN_UICR_SECURESTORAGE" , # Used in specialized build tool, not part of main Kconfig
1272
+ "GEN_UICR_SECONDARY_PROCESSOR_VALUE" , # Used in specialized build tool, not part of main Kconfig
1272
1273
"HEAP_MEM_POOL_ADD_SIZE_" , # Used as an option matching prefix
1273
1274
"HUGETLBFS" , # Linux, in boards/xtensa/intel_adsp_cavs25/doc
1274
1275
"IAR_BUFFERED_WRITE" ,
Original file line number Diff line number Diff line change @@ -439,6 +439,12 @@ def main() -> None:
439
439
type = lambda s : int (s , 0 ),
440
440
help = "Absolute flash address of the secondary firmware (decimal or 0x-prefixed hex)" ,
441
441
)
442
+ parser .add_argument (
443
+ "--secondary-processor" ,
444
+ default = 0xBD2328A8 ,
445
+ type = lambda s : int (s , 0 ),
446
+ help = "Processor to boot for the secondary firmware " ,
447
+ )
442
448
parser .add_argument (
443
449
"--secondary-periphconf-address" ,
444
450
default = None ,
@@ -562,6 +568,7 @@ def main() -> None:
562
568
if args .secondary :
563
569
uicr .SECONDARY .ENABLE = ENABLED_VALUE
564
570
uicr .SECONDARY .ADDRESS = args .secondary_address
571
+ uicr .SECONDARY .PROCESSOR = args .secondary_processor
565
572
566
573
# Handle secondary periphconf if provided
567
574
if args .out_secondary_periphconf_hex :
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ if(CONFIG_GEN_UICR_SECONDARY)
154
154
155
155
list (APPEND secondary_args
156
156
--secondary-address ${SECONDARY_ADDRESS}
157
+ --secondary-processor ${CONFIG_GEN_UICR_SECONDARY_PROCESSOR_VALUE}
157
158
)
158
159
159
160
if (CONFIG_GEN_UICR_SECONDARY_GENERATE_PERIPHCONF)
Original file line number Diff line number Diff line change @@ -13,14 +13,40 @@ config GEN_UICR_GENERATE_PERIPHCONF
13
13
config GEN_UICR_SECONDARY
14
14
bool "Enable UICR.SECONDARY.ENABLE"
15
15
16
+ if GEN_UICR_SECONDARY
17
+
16
18
config GEN_UICR_SECONDARY_GENERATE_PERIPHCONF
17
19
bool "Generate SECONDARY.PERIPHCONF hex alongside UICR"
18
20
default y
19
- depends on GEN_UICR_SECONDARY
20
21
help
21
22
When enabled, the UICR generator will populate the
22
23
secondary_periphconf_partition partition.
23
24
25
+ choice GEN_UICR_SECONDARY_PROCESSOR
26
+ prompt "Secondary processor selection"
27
+ default GEN_UICR_SECONDARY_PROCESSOR_APPLICATION
28
+ help
29
+ Processor to boot for the secondary firmware.
30
+
31
+ config GEN_UICR_SECONDARY_PROCESSOR_APPLICATION
32
+ bool "APPLICATION processor"
33
+ help
34
+ Boot secondary firmware on the APPLICATION processor.
35
+
36
+ config GEN_UICR_SECONDARY_PROCESSOR_RADIOCORE
37
+ bool "RADIOCORE processor"
38
+ help
39
+ Boot secondary firmware on the RADIOCORE processor.
40
+
41
+ endchoice
42
+
43
+ config GEN_UICR_SECONDARY_PROCESSOR_VALUE
44
+ hex
45
+ default 0xBD2328A8 if GEN_UICR_SECONDARY_PROCESSOR_APPLICATION
46
+ default 0x1730C77F if GEN_UICR_SECONDARY_PROCESSOR_RADIOCORE
47
+
48
+ endif # GEN_UICR_SECONDARY
49
+
24
50
config GEN_UICR_SECURESTORAGE
25
51
bool "Enable UICR.SECURESTORAGE"
26
52
default y
You can’t perform that action at this time.
0 commit comments