File tree Expand file tree Collapse file tree 3 files changed +4
-31
lines changed Expand file tree Collapse file tree 3 files changed +4
-31
lines changed Original file line number Diff line number Diff line change @@ -345,26 +345,19 @@ zephyr_udc0: &usbhs {
345
345
346
346
/* Trim this RAM block for making room on all run-time common S2RAM cpu context. */
347
347
&cpuapp_ram0 {
348
- reg = <0x22000000 (DT_SIZE_K(32) - 52 )>;
349
- ranges = <0x0 0x22000000 (0x8000 - 0x34 )>;
348
+ reg = <0x22000000 (DT_SIZE_K(32) - 48 )>;
349
+ ranges = <0x0 0x22000000 (0x8000 - 0x30 )>;
350
350
};
351
351
352
352
/ {
353
353
soc {
354
354
/* temporary stack for S2RAM resume logic */
355
- pm_s2ram_stack: cpuapp_s2ram_stack@22007fcc {
355
+ pm_s2ram_stack: cpuapp_s2ram_stack@22007fd0 {
356
356
compatible = "zephyr,memory-region", "mmio-sram";
357
- reg = <0x22007fcc 16>;
357
+ reg = <0x22007fd0 16>;
358
358
zephyr,memory-region = "pm_s2ram_stack";
359
359
};
360
360
361
- /* run-time common mcuboot S2RAM support section */
362
- mcuboot_s2ram: cpuapp_s2ram@22007fdc {
363
- compatible = "zephyr,memory-region", "mmio-sram";
364
- reg = <0x22007fdc 4>;
365
- zephyr,memory-region = "mcuboot_s2ram_context";
366
- };
367
-
368
361
/* run-time common S2RAM cpu context RAM */
369
362
pm_s2ram: cpuapp_s2ram@22007fe0 {
370
363
compatible = "zephyr,memory-region", "mmio-sram";
Original file line number Diff line number Diff line change @@ -219,24 +219,10 @@ static void fpu_restore(_fpu_context_t *backup)
219
219
#endif /* !defined(CONFIG_FPU_SHARING) */
220
220
#endif /* defined(CONFIG_FPU) */
221
221
222
- #if DT_NODE_EXISTS (DT_NODELABEL (mcuboot_s2ram )) && \
223
- DT_NODE_HAS_COMPAT (DT_NODELABEL (mcuboot_s2ram ), zephyr_memory_region )
224
- /* Linker section name is given by `zephyr,memory-region` property of
225
- * `zephyr,memory-region` compatible DT node with nodelabel `mcuboot_s2ram`.
226
- */
227
- __attribute__((section (DT_PROP (DT_NODELABEL (mcuboot_s2ram ), zephyr_memory_region ))))
228
- volatile struct mcuboot_resume_s _mcuboot_resume ;
229
-
230
- #define SET_MCUBOOT_RESUME_MAGIC () _mcuboot_resume.magic = MCUBOOT_S2RAM_RESUME_MAGIC
231
- #else
232
- #define SET_MCUBOOT_RESUME_MAGIC ()
233
- #endif
234
-
235
222
int soc_s2ram_suspend (pm_s2ram_system_off_fn_t system_off )
236
223
{
237
224
int ret ;
238
225
239
- SET_MCUBOOT_RESUME_MAGIC ();
240
226
scb_save (& backup_data .scb_context );
241
227
#if defined(CONFIG_FPU )
242
228
#if !defined(CONFIG_FPU_SHARING )
Original file line number Diff line number Diff line change 10
10
#ifndef _ZEPHYR_SOC_ARM_NORDIC_NRF_PM_S2RAM_H_
11
11
#define _ZEPHYR_SOC_ARM_NORDIC_NRF_PM_S2RAM_H_
12
12
13
- #define MCUBOOT_S2RAM_RESUME_MAGIC 0x75832419
14
-
15
- struct mcuboot_resume_s {
16
- uint32_t magic ; /* magic value to identify valid structure */
17
- };
18
-
19
13
/**
20
14
* @brief Save CPU state on suspend
21
15
*
You can’t perform that action at this time.
0 commit comments