Skip to content

Commit

Permalink
[nrf fromlist] soc: nordic: poweroff: disable remaining RAM on emul l…
Browse files Browse the repository at this point in the history
…05/l10 targets

nRF54L05 and nRF54L10 devices that are emulated on nRF54L15
needs to have manually disabled remaining RAM blocks
that are outside of their RAM region definitions.

Upstream PR #: 82262

Signed-off-by: Nikodem Kastelik <[email protected]>
(cherry picked from commit 8798cb4)
  • Loading branch information
nika-nordic authored and carlescufi committed Dec 16, 2024
1 parent 22eec45 commit 1f8f3dc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions soc/nordic/common/poweroff.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ void z_sys_poweroff(void)

/* Disable retention for all memory blocks */
nrfx_ram_ctrl_retention_enable_set(ram_start, ram_size, false);
#if defined(DEVELOP_IN_NRF54L15) && defined(NRF54L05_XXAA)
nrf_memconf_ramblock_ret_mask_enable_set(NRF_MEMCONF, 0, 0x1F8, false);
nrf_memconf_ramblock_ret2_mask_enable_set(NRF_MEMCONF, 0, 0x1F8, false);
#endif
#if defined(DEVELOP_IN_NRF54L15) && defined(NRF54L10_XXAA)
nrf_memconf_ramblock_ret_mask_enable_set(NRF_MEMCONF, 0, 0x1C0, false);
nrf_memconf_ramblock_ret2_mask_enable_set(NRF_MEMCONF, 0, 0x1C0, false);
#endif

#endif

#if defined(CONFIG_RETAINED_MEM_NRF_RAM_CTRL)
Expand Down

0 comments on commit 1f8f3dc

Please sign in to comment.