Skip to content

Commit 6683e18

Browse files
ananglcarlescufi
authored andcommitted
drivers: mspi_sqspi: Add handling of FLPR RAM retention on nRF54L15
Add enabling and disabling of RAM for the sQSPI soft peripheral, as described in the nRF54L15 porting guide. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 43dfb59 commit 6683e18

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

drivers/mspi/mspi_sqspi.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
#include <softperipheral_regif.h>
1818
#include <nrfx_qspi2.h>
1919
#if defined(CONFIG_SOC_SERIES_NRF54LX)
20-
#include <hal/nrf_spu.h>
20+
#include <hal/nrf_memconf.h>
2121
#include <hal/nrf_oscillators.h>
22+
#include <hal/nrf_spu.h>
2223
#endif
2324
#if defined(CONFIG_SOC_NRF54H20_GPD)
2425
#include <nrf/gpd.h>
@@ -439,6 +440,10 @@ static int dev_pm_action_cb(const struct device *dev,
439440
}
440441
#endif
441442
nrfx_qspi2_activate(&dev_config->qspi2);
443+
#if defined(CONFIG_SOC_SERIES_NRF54LX)
444+
nrf_memconf_ramblock_ret_enable_set(NRF_MEMCONF,
445+
1, MEMCONF_POWER_RET_MEM0_Pos, false);
446+
#endif
442447

443448
dev_data->suspended = false;
444449

@@ -466,6 +471,10 @@ static int dev_pm_action_cb(const struct device *dev,
466471
return -EBUSY;
467472
}
468473

474+
#if defined(CONFIG_SOC_SERIES_NRF54LX)
475+
nrf_memconf_ramblock_ret_enable_set(NRF_MEMCONF,
476+
1, MEMCONF_POWER_RET_MEM0_Pos, true);
477+
#endif
469478
nrfx_qspi2_deactivate(&dev_config->qspi2);
470479

471480
k_sem_give(&dev_data->ctx_lock);

0 commit comments

Comments
 (0)