Skip to content

Commit 9ff5068

Browse files
committed
fixup! [nrf noup] drivers: spi: dw: turn on FAST_ACTIVE1 domain
1 parent 52b9089 commit 9ff5068

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

drivers/spi/spi_dw.c

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,12 @@ static int transceive(const struct device *dev,
362362
}
363363
#endif /* CONFIG_PM_DEVICE */
364364

365+
#ifdef CONFIG_SOC_NRF54H20_GPD
366+
ret = nrf_gpd_request(NRF_GPD_FAST_ACTIVE1);
367+
if (ret < 0) {
368+
return ret;
369+
}
370+
#endif
365371
/* Configure */
366372
ret = spi_dw_configure(dev, spi, config);
367373
if (ret) {
@@ -459,6 +465,13 @@ static int transceive(const struct device *dev,
459465
#endif /* CONFIG_SPI_SLAVE */
460466

461467
out:
468+
#ifdef CONFIG_SOC_NRF54H20_GPD
469+
ret = nrf_gpd_release(NRF_GPD_FAST_ACTIVE1);
470+
if (ret < 0) {
471+
return ret;
472+
}
473+
#endif
474+
462475
spi_context_release(&spi->ctx, ret);
463476

464477
pm_device_busy_clear(dev);
@@ -564,13 +577,6 @@ int spi_dw_init(const struct device *dev)
564577
#ifdef CONFIG_HAS_NRFX
565578
NRF_EXMIF->INTENSET = BIT(0);
566579
NRF_EXMIF->TASKS_START = 1;
567-
568-
#ifdef CONFIG_SOC_NRF54H20_GPD
569-
err = nrf_gpd_request(NRF_GPD_FAST_ACTIVE1);
570-
if (err < 0) {
571-
return err;
572-
}
573-
#endif
574580
#endif
575581

576582
info->config_func();

0 commit comments

Comments
 (0)