Lines Matching +full:power +full:- +full:down
1 // SPDX-License-Identifier: GPL-2.0+
5 * (C) Copyright 2012-2014
16 * psc_delay() - delay for psc
27 * psc_wait() - Wait for end of transitional state
34 * Return: 0 when the domain is free. Returns -1 if a timeout occurred waiting
43 * Do nothing if the power domain is in transition. This should never in psc_wait()
59 return -1; in psc_wait()
65 * psc_get_domain_num() - Get the domain number
72 /* Get the power domain associated with the module number */ in psc_get_domain_num()
80 * psc_set_state() - powers up/down a module
84 * Powers up/down the requested module and the associated power domain if
85 * required. No action is taken it the module is already powered up/down.
87 * be left in the power on state. Multiple modules can exist in a power
88 * domain, so powering down the domain based on a single module is not done.
90 * Return: 0 on success, -1 if the module can't be powered up, or if there is a
103 * Get the power domain associated with the module number, and reset in psc_set_state()
110 /* Wait for the status of the domain/module to be non-transitional */ in psc_set_state()
112 return -1; in psc_set_state()
118 * Set the next state of the power domain to on. It's OK if the domain in psc_set_state()
119 * is always on. This code will not ever power down a domain, so no in psc_set_state()
120 * change is made if the new state is power down. in psc_set_state()
145 * psc_enable_module() - power up a module
148 * Powers up the requested module and the associated power domain
151 * Return: 0 on success, -1 if the module can't be powered up, or
168 * psc_disable_module() - Power down a module
171 * Return: 0 on success, -1 on failure or timeout.
188 * psc_set_reset_iso() - Set the reset isolation bit in mdctl
216 * psc_disable_domain() - Disable a power domain
237 * psc_module_keep_in_reset_enabled() - Keep module in enabled,in-reset state
284 timeout--; in psc_module_keep_in_reset_enabled()
290 return -ETIMEDOUT; in psc_module_keep_in_reset_enabled()
296 * psc_module_release_from_reset() - Release the module from reset
313 /* Should be set to 1 to de-assert Local reset */ in psc_module_release_from_reset()
328 timeout--; in psc_module_release_from_reset()
334 return -ETIMEDOUT; in psc_module_release_from_reset()