Skip to content

Commit 0ce9050

Browse files
committed
soc: nordic: nrf54h: Add MVDMA restore to S2RAM
MVDMA is present in the application domain so it's configuration need to be restored when waking up from suspend to RAM. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent f2874b4 commit 0ce9050

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

soc/nordic/nrf54h/pm_s2ram.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <zephyr/linker/sections.h>
99
#include <zephyr/sys/util.h>
1010
#include <hal/nrf_resetinfo.h>
11+
#include <mvdma.h>
1112
#include "pm_s2ram.h"
1213
#include "power.h"
1314

@@ -257,6 +258,9 @@ int soc_s2ram_suspend(pm_s2ram_system_off_fn_t system_off)
257258
#endif
258259
nvic_restore(&backup_data.nvic_context);
259260
scb_restore(&backup_data.scb_context);
261+
if (IS_ENABLED(CONFIG_MVDMA)) {
262+
mvdma_resume();
263+
}
260264

261265
return ret;
262266
}

0 commit comments

Comments
 (0)