Skip to content

Commit bbfecc3

Browse files
nvlsianpurlubos
authored andcommitted
[nrf noup] soc/nordic/nrf54h20/pm_s2ram: extend mcuboot_resume_s
nrf_squash! [nrf noup] soc/nordic/nf54h/pm_s2ram: S2RAM resume hardening Extended mcuboot_resume_s suture by slot_info field intended to be used by MCUboot for recognize proper boot slot in direct-xp mode. Signed-off-by: Andrzej Puzdrowski <[email protected]>
1 parent b99a7ef commit bbfecc3

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp.dts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -345,23 +345,23 @@ zephyr_udc0: &usbhs {
345345

346346
/* Trim this RAM block for making room on all run-time common S2RAM cpu context. */
347347
&cpuapp_ram0 {
348-
reg = <0x22000000 (DT_SIZE_K(32) - 52)>;
349-
ranges = <0x0 0x22000000 (0x8000 - 0x34)>;
348+
reg = <0x22000000 (DT_SIZE_K(32) - 56)>;
349+
ranges = <0x0 0x22000000 (0x8000 - 0x38)>;
350350
};
351351

352352
/ {
353353
soc {
354354
/* temporary stack for S2RAM resume logic */
355-
pm_s2ram_stack: cpuapp_s2ram_stack@22007fcc {
355+
pm_s2ram_stack: cpuapp_s2ram_stack@22007fc8 {
356356
compatible = "zephyr,memory-region", "mmio-sram";
357-
reg = <0x22007fcc 16>;
357+
reg = <0x22007fc8 16>;
358358
zephyr,memory-region = "pm_s2ram_stack";
359359
};
360360

361361
/* run-time common mcuboot S2RAM support section */
362-
mcuboot_s2ram: cpuapp_s2ram@22007fdc {
362+
mcuboot_s2ram: cpuapp_s2ram@22007fd8 {
363363
compatible = "zephyr,memory-region", "mmio-sram";
364-
reg = <0x22007fdc 4>;
364+
reg = <0x22007fd8 8>;
365365
zephyr,memory-region = "mcuboot_s2ram_context";
366366
};
367367

soc/nordic/nrf54h/pm_s2ram.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
struct mcuboot_resume_s {
1616
uint32_t magic; /* magic value to identify valid structure */
17+
uint32_t slot_info;
1718
};
1819

1920
/**

0 commit comments

Comments
 (0)