File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff 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
461467out :
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 ();
You can’t perform that action at this time.
0 commit comments