Skip to content

Commit b2497a8

Browse files
drivers: mspi: remove redundant gpd handling
Manual handling of global power domains using gpd has been made redundant by power domain and pinctrl refactoring, and gpd has thus been removed. Remove gpd handling from mspi driver, as this is automatically done by pinctrl_apply_state() now. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 0e9cad0 commit b2497a8

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

drivers/mspi/mspi_sqspi.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
#include <hal/nrf_oscillators.h>
2222
#include <hal/nrf_spu.h>
2323
#endif
24-
#if defined(CONFIG_SOC_NRF54H20_GPD)
25-
#include <nrf/gpd.h>
26-
#endif
2724
#include <dmm.h>
2825

2926
LOG_MODULE_REGISTER(mspi_sqspi, CONFIG_MSPI_LOG_LEVEL);
@@ -432,13 +429,6 @@ static int dev_pm_action_cb(const struct device *dev,
432429
return rc;
433430
}
434431

435-
#if defined(CONFIG_SOC_NRF54H20_GPD)
436-
rc = nrf_gpd_retain_pins_set(dev_config->pcfg, false);
437-
if (rc < 0) {
438-
LOG_ERR("Cannot clear RETAIN for pins (%d)", rc);
439-
return rc;
440-
}
441-
#endif
442432
nrfx_qspi2_activate(&dev_config->qspi2);
443433
#if defined(CONFIG_SOC_SERIES_NRF54LX)
444434
nrf_memconf_ramblock_ret_enable_set(NRF_MEMCONF,
@@ -452,13 +442,6 @@ static int dev_pm_action_cb(const struct device *dev,
452442

453443
if (IS_ENABLED(CONFIG_PM_DEVICE) &&
454444
action == PM_DEVICE_ACTION_SUSPEND) {
455-
#if defined(CONFIG_SOC_NRF54H20_GPD)
456-
rc = nrf_gpd_retain_pins_set(dev_config->pcfg, true);
457-
if (rc < 0) {
458-
LOG_ERR("Cannot set RETAIN for pins (%d)", rc);
459-
return rc;
460-
}
461-
#endif
462445
rc = pinctrl_apply_state(dev_config->pcfg,
463446
PINCTRL_STATE_SLEEP);
464447
if (rc < 0) {

0 commit comments

Comments
 (0)