From f78623955fe4db0f09d8b0468285e1b639bfd3eb Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Wed, 13 Nov 2024 10:13:44 +0100 Subject: [PATCH] [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 (cherry picked from commit b9bc0846b926d339b042c4faa3c43c8276a37009) --- drivers/spi/spi_dw.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/spi/spi_dw.c b/drivers/spi/spi_dw.c index b4f772b158b..5801c2744b4 100644 --- a/drivers/spi/spi_dw.c +++ b/drivers/spi/spi_dw.c @@ -45,6 +45,10 @@ LOG_MODULE_REGISTER(spi_dw); #include #endif +#ifdef CONFIG_SOC_NRF54H20_GPD +#include +#endif + static inline bool spi_dw_is_slave(struct spi_dw_data *spi) { return (IS_ENABLED(CONFIG_SPI_SLAVE) && @@ -560,6 +564,13 @@ int spi_dw_init(const struct device *dev) #ifdef CONFIG_HAS_NRFX NRF_EXMIF->INTENSET = BIT(0); NRF_EXMIF->TASKS_START = 1; + +#ifdef CONFIG_SOC_NRF54H20_GPD + err = nrf_gpd_request(NRF_GPD_FAST_ACTIVE1); + if (err < 0) { + return err; + } +#endif #endif info->config_func();