From 2e3bc500a9bbe3c05a7e0bcbb1f3b06c99a594c1 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 20 Jul 2023 13:00:59 +0200 Subject: [PATCH] soc: arm: nxp_imx: rt5xx: drop SOFT_OFF SOFT_OFF is now handled via sys_shutdown() API. Signed-off-by: Gerard Marull-Paretas --- dts/arm/nxp/nxp_rt5xx_common.dtsi | 6 ------ soc/arm/nxp_imx/rt5xx/power.c | 6 ------ 2 files changed, 12 deletions(-) diff --git a/dts/arm/nxp/nxp_rt5xx_common.dtsi b/dts/arm/nxp/nxp_rt5xx_common.dtsi index 5a84e929f87..d7348758378 100644 --- a/dts/arm/nxp/nxp_rt5xx_common.dtsi +++ b/dts/arm/nxp/nxp_rt5xx_common.dtsi @@ -61,12 +61,6 @@ <0xFFFFFFFF>, <0>; }; - /* - * Deep power-down mode is supported in this SoC through - * 'PM_STATE_SOFT_OFF' state. There is no entry for this - * in device tree, user can call pm_state_force to enter - * this state. - */ }; }; }; diff --git a/soc/arm/nxp_imx/rt5xx/power.c b/soc/arm/nxp_imx/rt5xx/power.c index b4137827c60..69b60936fb4 100644 --- a/soc/arm/nxp_imx/rt5xx/power.c +++ b/soc/arm/nxp_imx/rt5xx/power.c @@ -16,8 +16,6 @@ LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); #define EXCLUDE_FROM_DEEPSLEEP ((const uint32_t[]) \ DT_PROP_OR(NODE_ID, deep_sleep_config, {})) -#define EXCLUDE_FROM_DEEP_POWERDOWN ((const uint32_t[]){0, 0, 0, 0}) - static uint32_t isp_pin[3]; /* System clock frequency. */ @@ -71,10 +69,6 @@ void pm_state_set(enum pm_state state, uint8_t substate_id) POWER_EnterDeepSleep(EXCLUDE_FROM_DEEPSLEEP); restore_deepsleep_pin_config(); break; - case PM_STATE_SOFT_OFF: - set_deepsleep_pin_config(); - POWER_EnterDeepPowerDown(EXCLUDE_FROM_DEEP_POWERDOWN); - break; default: LOG_DBG("Unsupported power state %u", state); break;