diff --git a/soc/arm/nordic_nrf/common/poweroff.c b/soc/arm/nordic_nrf/common/poweroff.c index 7474c94a74a..1c43da3e9ea 100644 --- a/soc/arm/nordic_nrf/common/poweroff.c +++ b/soc/arm/nordic_nrf/common/poweroff.c @@ -6,11 +6,19 @@ #include #include +#if defined(CONFIG_SOC_SERIES_NRF51X) || defined(CONFIG_SOC_SERIES_NRF52X) #include +#else +#include +#endif void z_sys_poweroff(void) { +#if defined(CONFIG_SOC_SERIES_NRF51X) || defined(CONFIG_SOC_SERIES_NRF52X) nrf_power_system_off(NRF_POWER); +#else + nrf_regulators_system_off(NRF_REGULATORS); +#endif CODE_UNREACHABLE; }