Skip to content

Commit f786239

Browse files
gmarullrlubos
authored andcommitted
[nrf noup] drivers: spi: dw: turn on FAST_ACTIVE1 domain
FAST_ACTIVE1 domain needs to be kept ON while the peripheral is active (always in this driver). Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit b9bc084)
1 parent 07fd342 commit f786239

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/spi/spi_dw.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ LOG_MODULE_REGISTER(spi_dw);
4545
#include <nrfx.h>
4646
#endif
4747

48+
#ifdef CONFIG_SOC_NRF54H20_GPD
49+
#include <nrf/gpd.h>
50+
#endif
51+
4852
static inline bool spi_dw_is_slave(struct spi_dw_data *spi)
4953
{
5054
return (IS_ENABLED(CONFIG_SPI_SLAVE) &&
@@ -560,6 +564,13 @@ int spi_dw_init(const struct device *dev)
560564
#ifdef CONFIG_HAS_NRFX
561565
NRF_EXMIF->INTENSET = BIT(0);
562566
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
563574
#endif
564575

565576
info->config_func();

0 commit comments

Comments
 (0)