Skip to content

Commit 39f2950

Browse files
nika-nordickartben
authored andcommitted
soc: nordic: poweroff: disable remaining RAM on emul l05/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. Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
1 parent 38b975a commit 39f2950

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

soc/nordic/common/poweroff.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ void z_sys_poweroff(void)
5050

5151
/* Disable retention for all memory blocks */
5252
nrfx_ram_ctrl_retention_enable_set(ram_start, ram_size, false);
53+
#if defined(DEVELOP_IN_NRF54L15) && defined(NRF54L05_XXAA)
54+
nrf_memconf_ramblock_ret_mask_enable_set(NRF_MEMCONF, 0, 0x1F8, false);
55+
nrf_memconf_ramblock_ret2_mask_enable_set(NRF_MEMCONF, 0, 0x1F8, false);
56+
#endif
57+
#if defined(DEVELOP_IN_NRF54L15) && defined(NRF54L10_XXAA)
58+
nrf_memconf_ramblock_ret_mask_enable_set(NRF_MEMCONF, 0, 0x1C0, false);
59+
nrf_memconf_ramblock_ret2_mask_enable_set(NRF_MEMCONF, 0, 0x1C0, false);
60+
#endif
61+
5362
#endif /* defined(CONFIG_HAS_NORDIC_RAM_CTRL) */
5463

5564
#if defined(CONFIG_RETAINED_MEM_NRF_RAM_CTRL)

0 commit comments

Comments
 (0)