Skip to content

Commit 7c06b44

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

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/spi/spi_dw.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,13 @@ int spi_dw_init(const struct device *dev)
568568
const struct spi_dw_config *info = dev->config;
569569
struct spi_dw_data *spi = dev->data;
570570

571+
#ifdef CONFIG_SOC_NRF54H20_GPD
572+
err = nrf_gpd_request(NRF_GPD_FAST_ACTIVE1);
573+
if (err < 0) {
574+
return err;
575+
}
576+
#endif
577+
571578
#ifdef CONFIG_PINCTRL
572579
pinctrl_apply_state(info->pcfg, PINCTRL_STATE_DEFAULT);
573580
#endif
@@ -594,6 +601,13 @@ int spi_dw_init(const struct device *dev)
594601

595602
spi_context_unlock_unconditionally(&spi->ctx);
596603

604+
#ifdef CONFIG_SOC_NRF54H20_GPD
605+
err = nrf_gpd_release(NRF_GPD_FAST_ACTIVE1);
606+
if (err < 0) {
607+
return err;
608+
}
609+
#endif
610+
597611
return 0;
598612
}
599613

0 commit comments

Comments
 (0)