Skip to content

Commit

Permalink
soc: arm: nxp_imx: rt5xx: drop SOFT_OFF
Browse files Browse the repository at this point in the history
SOFT_OFF is now handled via sys_shutdown() API.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
  • Loading branch information
gmarull authored and carlescufi committed Aug 4, 2023
1 parent a99a675 commit 2e3bc50
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions dts/arm/nxp/nxp_rt5xx_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
};
};
};
Expand Down
6 changes: 0 additions & 6 deletions soc/arm/nxp_imx/rt5xx/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2e3bc50

Please sign in to comment.