• Home
  • Raw
  • Download

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

4  * Copyright (C) 2011-2012 Texas Instruments Incorporated - https://www.ti.com/
28 #include "cm-regbits-34xx.h"
29 #include "cm-regbits-33xx.h"
38 * 0x2 idle: Module is in Idle mode (only OCP part). It is functional if
62 /* Read-modify-write a register in CM */
87 * _clkctrl_idlest - read a CM_*_CLKCTRL register; mask & shift IDLEST bitfield
103 * _is_module_ready - can module registers be accessed without causing an abort?
121 * _clktrctrl_write - write @c to a CM_CLKSTCTRL.CLKTRCTRL register bitfield
126 * @c must be the unshifted value for CLKTRCTRL - i.e., this function
142 * am33xx_cm_is_clkdm_in_hwsup - is a clockdomain in hwsup idle mode?
147 * is in hardware-supervised idle mode, or 0 otherwise.
161 * am33xx_cm_clkdm_enable_hwsup - put a clockdomain in hwsup-idle mode
166 * hardware-supervised idle mode. No return value.
174 * am33xx_cm_clkdm_disable_hwsup - put a clockdomain in swsup-idle mode
179 * software-supervised idle mode, i.e., controlled manually by the
180 * Linux OMAP clockdomain code. No return value.
188 * am33xx_cm_clkdm_force_sleep - try to put a clockdomain into idle
192 * Put a clockdomain referred to by (@inst, @cdoffs) into idle
193 * No return value.
201 * am33xx_cm_clkdm_force_wakeup - try to take a clockdomain out of idle
205 * Take a clockdomain referred to by (@inst, @cdoffs) out of idle,
206 * waking it up. No return value.
218 * am33xx_cm_wait_module_ready - wait for a module to be in 'func' state
224 * Wait for the module IDLEST to be functional. If the idle state is in any
225 * the non functional state (trans, idle or disabled), module and thus the
237 return (i < MAX_MODULE_READY_TIME) ? 0 : -EBUSY; in am33xx_cm_wait_module_ready()
241 * am33xx_cm_wait_module_idle - wait for a module to be in 'disabled'
249 * like reset assertion or parent clock de-activation must wait the
261 return (i < MAX_MODULE_READY_TIME) ? 0 : -EBUSY; in am33xx_cm_wait_module_idle()
265 * am33xx_cm_module_enable - Enable the modulemode inside CLKCTRL
271 * No return value.
285 * am33xx_cm_module_disable - Disable the module inside CLKCTRL
290 * No return value.
302 * Clockdomain low-level functions
307 am33xx_cm_clkdm_force_sleep(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_sleep()
313 am33xx_cm_clkdm_force_wakeup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_wakeup()
319 am33xx_cm_clkdm_enable_hwsup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_allow_idle()
324 am33xx_cm_clkdm_disable_hwsup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_deny_idle()
329 if (clkdm->flags & CLKDM_CAN_FORCE_WAKEUP) in am33xx_clkdm_clk_enable()
339 hwsup = am33xx_cm_is_clkdm_in_hwsup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_clk_disable()
341 if (!hwsup && (clkdm->flags & CLKDM_CAN_FORCE_SLEEP)) in am33xx_clkdm_clk_disable()
353 * am33xx_clkdm_save_context - Save the clockdomain transition context
360 clkdm->context = am33xx_cm_read_reg_bits(clkdm->cm_inst, in am33xx_clkdm_save_context()
361 clkdm->clkdm_offs, in am33xx_clkdm_save_context()
368 * am33xx_restore_save_context - Restore the clockdomain transition context
375 switch (clkdm->context) { in am33xx_clkdm_restore_context()