Lines Matching +full:no +full:- +full:idle

1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2011-2012 Texas Instruments Incorporated - https://www.ti.com/
20 #include "cm-regbits-34xx.h"
21 #include "cm-regbits-33xx.h"
33 * 0x2 idle: Module is in Idle mode (only OCP part). It is functional if
57 /* Read-modify-write a register in CM */
82 * _clkctrl_idlest - read a CM_*_CLKCTRL register; mask & shift IDLEST bitfield
98 * _is_module_ready - can module registers be accessed without causing an abort?
116 * _clktrctrl_write - write @c to a CM_CLKSTCTRL.CLKTRCTRL register bitfield
121 * @c must be the unshifted value for CLKTRCTRL - i.e., this function
137 * am33xx_cm_is_clkdm_in_hwsup - is a clockdomain in hwsup idle mode?
142 * is in hardware-supervised idle mode, or 0 otherwise.
156 * am33xx_cm_clkdm_enable_hwsup - put a clockdomain in hwsup-idle mode
161 * hardware-supervised idle mode. No return value.
169 * am33xx_cm_clkdm_disable_hwsup - put a clockdomain in swsup-idle mode
174 * software-supervised idle mode, i.e., controlled manually by the
175 * Linux OMAP clockdomain code. No return value.
183 * am33xx_cm_clkdm_force_sleep - try to put a clockdomain into idle
187 * Put a clockdomain referred to by (@inst, @cdoffs) into idle
188 * No return value.
196 * am33xx_cm_clkdm_force_wakeup - try to take a clockdomain out of idle
200 * Take a clockdomain referred to by (@inst, @cdoffs) out of idle,
201 * waking it up. No return value.
213 * am33xx_cm_wait_module_ready - wait for a module to be in 'func' state
219 * Wait for the module IDLEST to be functional. If the idle state is in any
220 * the non functional state (trans, idle or disabled), module and thus the
232 return (i < MAX_MODULE_READY_TIME) ? 0 : -EBUSY; in am33xx_cm_wait_module_ready()
236 * am33xx_cm_wait_module_idle - wait for a module to be in 'disabled'
244 * like reset assertion or parent clock de-activation must wait the
256 return (i < MAX_MODULE_READY_TIME) ? 0 : -EBUSY; in am33xx_cm_wait_module_idle()
260 * am33xx_cm_module_enable - Enable the modulemode inside CLKCTRL
266 * No return value.
280 * am33xx_cm_module_disable - Disable the module inside CLKCTRL
285 * No return value.
297 * Clockdomain low-level functions
302 am33xx_cm_clkdm_force_sleep(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_sleep()
308 am33xx_cm_clkdm_force_wakeup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_wakeup()
314 am33xx_cm_clkdm_enable_hwsup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_allow_idle()
319 am33xx_cm_clkdm_disable_hwsup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_deny_idle()
324 if (clkdm->flags & CLKDM_CAN_FORCE_WAKEUP) in am33xx_clkdm_clk_enable()
337 * Since CM3 PM FW doesn't wake-up/enable the l4ls clk domain in am33xx_clkdm_clk_disable()
338 * upon wake-up, CM3 PM FW fails to wake-up th MPU. in am33xx_clkdm_clk_disable()
341 (clkdm->flags & CLKDM_STANDBY_FORCE_WAKEUP)) in am33xx_clkdm_clk_disable()
344 hwsup = am33xx_cm_is_clkdm_in_hwsup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_clk_disable()
345 if (!hwsup && (clkdm->flags & CLKDM_CAN_FORCE_SLEEP)) in am33xx_clkdm_clk_disable()
357 * am33xx_clkdm_save_context - Save the clockdomain transition context
364 clkdm->context = am33xx_cm_read_reg_bits(clkdm->cm_inst, in am33xx_clkdm_save_context()
365 clkdm->clkdm_offs, in am33xx_clkdm_save_context()
372 * am33xx_clkdm_restore_context - Restore the clockdomain transition context
379 switch (clkdm->context) { in am33xx_clkdm_restore_context()