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 @@ -1268,6 +1268,7 @@ def check_no_undef_outside_kconfig(self, kconf):
1268
1268
"GEN_UICR_GENERATE_PERIPHCONF" , # Used in specialized build tool, not part of main Kconfig
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
+ "GEN_UICR_SECONDARY_PROCESSOR_VALUE" , # Used in specialized build tool, not part of main Kconfig
1271
1272
"HEAP_MEM_POOL_ADD_SIZE_" , # Used as an option matching prefix
1272
1273
"HUGETLBFS" , # Linux, in boards/xtensa/intel_adsp_cavs25/doc
1273
1274
"IAR_BUFFERED_WRITE" ,
Original file line number Diff line number Diff line change @@ -266,6 +266,12 @@ def main() -> None:
266
266
type = lambda s : int (s , 0 ),
267
267
help = "Absolute flash address of the secondary firmware (decimal or 0x-prefixed hex)" ,
268
268
)
269
+ parser .add_argument (
270
+ "--secondary-processor" ,
271
+ default = 0xBD2328A8 ,
272
+ type = lambda s : int (s , 0 ),
273
+ help = "Processor to boot for the secondary firmware " ,
274
+ )
269
275
parser .add_argument (
270
276
"--secondary-periphconf-address" ,
271
277
default = None ,
@@ -366,6 +372,7 @@ def main() -> None:
366
372
if args .secondary :
367
373
uicr .SECONDARY .ENABLE = ENABLED_VALUE
368
374
uicr .SECONDARY .ADDRESS = args .secondary_address
375
+ uicr .SECONDARY .PROCESSOR = args .secondary_processor
369
376
370
377
# Handle secondary periphconf if provided
371
378
if args .out_secondary_periphconf_hex :
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ if(CONFIG_GEN_UICR_SECONDARY)
109
109
110
110
list (APPEND secondary_args
111
111
--secondary-address ${SECONDARY_ADDRESS}
112
+ --secondary-processor ${CONFIG_GEN_UICR_SECONDARY_PROCESSOR_VALUE}
112
113
)
113
114
114
115
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
endmenu
25
51
26
52
source "Kconfig.zephyr"
You can’t perform that action at this time.
0 commit comments