Skip to content

Commit 6aab4fd

Browse files
committed
[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 c539d47 commit 6aab4fd

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
@@ -343,23 +343,23 @@ zephyr_udc0: &usbhs {
343343

344344
/* Trim this RAM block for making room on all run-time common S2RAM cpu context. */
345345
&cpuapp_ram0 {
346-
reg = <0x22000000 (DT_SIZE_K(32) - 52)>;
347-
ranges = <0x0 0x22000000 (0x8000 - 0x34)>;
346+
reg = <0x22000000 (DT_SIZE_K(32) - 56)>;
347+
ranges = <0x0 0x22000000 (0x8000 - 0x38)>;
348348
};
349349

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

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

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)