Skip to content

Commit 99be435

Browse files
Flavio Ceolindleach02
authored andcommitted
soc: nxmp: rt10xx: Fix pm callbacks
The pm hooks for this target were not updated to follow the current API. These weak functions will never be called for the pm subsystem. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent bba3bd0 commit 99be435

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

soc/arm/nxp_imx/rt/power_rt10xx.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,11 @@ static void lpm_raise_voltage(void)
174174

175175

176176
/* Sets device into low power mode */
177-
__weak void pm_power_state_set(struct pm_state_info info)
177+
__weak void pm_state_set(enum pm_state state, uint8_t substate_id)
178178
{
179-
switch (info.state) {
179+
ARG_UNUSED(substate_id);
180+
181+
switch (state) {
180182
case PM_STATE_RUNTIME_IDLE:
181183
LOG_DBG("entering PM state runtime idle");
182184
lpm_set_sleep_mode_config(kCLOCK_ModeWait);
@@ -198,10 +200,12 @@ __weak void pm_power_state_set(struct pm_state_info info)
198200
}
199201

200202
/* Handle SOC specific activity after Low Power Mode Exit */
201-
__weak void pm_power_state_exit_post_ops(struct pm_state_info info)
203+
__weak void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id)
202204
{
205+
ARG_UNUSED(substate_id);
206+
203207
/* Set run mode config after wakeup */
204-
switch (info.state) {
208+
switch (state) {
205209
case PM_STATE_RUNTIME_IDLE:
206210
lpm_set_run_mode_config();
207211
LOG_DBG("exited PM state runtime idle");

0 commit comments

Comments
 (0)