File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1212#include <zephyr/drivers/pinctrl.h>
1313#include <zephyr/mem_mgmt/mem_attr.h>
1414#include <soc.h>
15+ #ifdef CONFIG_SOC_NRF54H20_GPD
16+ #include <nrf/gpd.h>
17+ #endif
1518#ifdef CONFIG_SOC_NRF52832_ALLOW_SPIM_DESPITE_PAN_58
1619#include <nrfx_ppi.h>
1720#endif
@@ -592,6 +595,11 @@ static int spim_nrfx_pm_action(const struct device *dev,
592595 /* nrfx_spim_init() will be called at configuration before
593596 * the next transfer.
594597 */
598+
599+ #ifdef CONFIG_SOC_NRF54H20_GPD
600+ nrf_gpd_retain_pins_set (dev_config -> pcfg , false);
601+ #endif
602+
595603 break ;
596604
597605 case PM_DEVICE_ACTION_SUSPEND :
@@ -600,6 +608,10 @@ static int spim_nrfx_pm_action(const struct device *dev,
600608 dev_data -> initialized = false;
601609 }
602610
611+ #ifdef CONFIG_SOC_NRF54H20_GPD
612+ nrf_gpd_retain_pins_set (dev_config -> pcfg , true);
613+ #endif
614+
603615 ret = pinctrl_apply_state (dev_config -> pcfg ,
604616 PINCTRL_STATE_SLEEP );
605617 break ;
You can’t perform that action at this time.
0 commit comments