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>
This commit is contained in:
Nikodem Kastelik 2024-12-17 17:44:54 +01:00 committed by Benjamin Cabé
commit 39f2950d06

View file

@ -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 /* defined(CONFIG_HAS_NORDIC_RAM_CTRL) */
#if defined(CONFIG_RETAINED_MEM_NRF_RAM_CTRL)