Lines Matching +full:enable +full:- +full:wait +full:- +full:mode
4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/dt-bindings/power/imx_spc.h>
20 * power mode
88 /* Enable all steps in flow of set point transition */ in gpc_set_transition_flow()
138 /* Enable all steps in standby transition */ in gpc_set_transition_flow()
180 GPC_CPU_MODE_CTRL->CM_IRQ_WAKEUP_MASK[i] |= 0xFFFFFFFF; in gpc_configure_interrupts()
183 /* Enable GPT interrupt source for GPC- this is system timer */ in gpc_configure_interrupts()
195 GPC_SET_POINT_CTRL->SP_ROSC_CTRL = ~OSC_RC_16M_STBY_VAL; in gpc_init()
239 /* Clear SLEEPDEEP bit to enter WAIT mode*/ in system_enter_sleep()
240 SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk; in system_enter_sleep()
242 /* Set SLEEPDEEP bit to enter STOP mode */ in system_enter_sleep()
243 SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; in system_enter_sleep()
255 /* WFI instruction will start entry into WAIT/STOP mode */ in system_enter_sleep()
260 void cpu_mode_transition(gpc_cpu_mode_t mode, bool enable_standby) in cpu_mode_transition() argument
262 GPC_CM_SetNextCpuMode(GPC_CPU_MODE_CTRL, mode); in cpu_mode_transition()
266 GPC_CPU_MODE_CTRL->CM_NON_IRQ_WAKEUP_MASK |= in cpu_mode_transition()
272 GPC_CM_RequestStandbyMode(GPC_CPU_MODE_CTRL, mode); in cpu_mode_transition()
275 GPC_CM_ClearStandbyModeRequest(GPC_CPU_MODE_CTRL, mode); in cpu_mode_transition()
278 /* Execute WFI- GPC will receive sleep request from CPU */ in cpu_mode_transition()
279 system_enter_sleep(mode); in cpu_mode_transition()
283 * SOC specific low power mode implementation
290 /* Extract set point and GPC mode from the substate ID */ in pm_state_set()
295 LOG_DBG("Switch to Set Point %d, GPC Mode %d requested", set_point, gpc_mode); in pm_state_set()
302 /* Request CPU mode transition without set mode transition */ in pm_state_set()
317 LOG_DBG("CM7 mode was %d", GPC_CM_GetPreviousCpuMode(GPC_CPU_MODE_CTRL_0)); in pm_state_exit_post_ops()
318 LOG_DBG("CM4 mode was %d", GPC_CM_GetPreviousCpuMode(GPC_CPU_MODE_CTRL_1)); in pm_state_exit_post_ops()