Skip to content

Commit d7d3220

Browse files
ananglcarlescufi
authored andcommitted
drivers: mspi_sqspi: Don't configure FLPR as secure in non-secure image
This should be done only in a secure configuration. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 6683e18 commit d7d3220

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mspi/mspi_sqspi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,12 @@ static int dev_init(const struct device *dev)
517517
#if defined(CONFIG_SOC_SERIES_NRF54LX)
518518
nrf_oscillators_pll_freq_set(NRF_OSCILLATORS,
519519
NRF_OSCILLATORS_PLL_FREQ_128M);
520+
#if !defined(CONFIG_TRUSTED_EXECUTION_NONSECURE)
520521
nrf_spu_periph_perm_secattr_set(NRF_SPU00,
521522
nrf_address_slave_get(DT_REG_ADDR(DT_NODELABEL(cpuflpr_vpr))),
522523
true);
523524
#endif
525+
#endif /* defined(CONFIG_SOC_SERIES_NRF54LX) */
524526

525527
IRQ_CONNECT(DT_IRQN(VPR_NODE), DT_IRQ(VPR_NODE, priority),
526528
nrfx_isr, nrfx_qspi2_irq_handler, 0);

0 commit comments

Comments
 (0)