We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff5068 commit 7c06b44Copy full SHA for 7c06b44
drivers/spi/spi_dw.c
@@ -568,6 +568,13 @@ int spi_dw_init(const struct device *dev)
568
const struct spi_dw_config *info = dev->config;
569
struct spi_dw_data *spi = dev->data;
570
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
+
578
#ifdef CONFIG_PINCTRL
579
pinctrl_apply_state(info->pcfg, PINCTRL_STATE_DEFAULT);
580
#endif
@@ -594,6 +601,13 @@ int spi_dw_init(const struct device *dev)
594
601
595
602
spi_context_unlock_unconditionally(&spi->ctx);
596
603
604
605
+ err = nrf_gpd_release(NRF_GPD_FAST_ACTIVE1);
606
607
608
609
610
597
611
return 0;
598
612
}
599
613
0 commit comments