From 1f8f3dc291420c70cd39e77a5cdc954561d4a08f Mon Sep 17 00:00:00 2001 From: Nikodem Kastelik Date: Wed, 11 Dec 2024 17:44:54 +0100 Subject: [PATCH] [nrf fromlist] 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. Upstream PR #: 82262 Signed-off-by: Nikodem Kastelik (cherry picked from commit 8798cb4caeedf0e78699cba48e4d3c7636d347a7) --- soc/nordic/common/poweroff.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/soc/nordic/common/poweroff.c b/soc/nordic/common/poweroff.c index 99a2bcfb3d6..8d95463e275 100644 --- a/soc/nordic/common/poweroff.c +++ b/soc/nordic/common/poweroff.c @@ -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)