Skip to content

Commit 2c45751

Browse files
ananglcvinayak
authored andcommitted
[nrf fromtree] drivers: nrf_qspi_nor: Activate QSPI peripheral when enabling XIP
The way that the QSPI peripheral is activated has been changed in nrfx 3.2.0. Now the peripheral is not activated during the driver initialization. Instead, the driver activates the peripheral when the first operation is requested or when `nrfx_qspi_activate()` is called. In case of XIP, the latter needs to be used, as there may be no standard operation request. Signed-off-by: Andrzej Głąbek <[email protected]> (cherry picked from commit 1081df9)
1 parent 9d971a7 commit 2c45751

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/flash/nrf_qspi_nor.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,6 +1457,9 @@ void z_impl_nrf_qspi_nor_xip_enable(const struct device *dev, bool enable)
14571457
nrf_qspi_xip_set(NRF_QSPI, enable);
14581458
#endif
14591459
qspi_lock(dev);
1460+
if (enable) {
1461+
(void)nrfx_qspi_activate(false);
1462+
}
14601463
dev_data->xip_enabled = enable;
14611464
qspi_unlock(dev);
14621465

0 commit comments

Comments
 (0)