Lines Matching defs:clockdomain

3  * OMAP2/3 clockdomain framework functions
25 * clockdomain. (Currently, this applies to OMAP3 clockdomains only.)
26 * CLKDM_ACTIVE_WITH_MPU: The PRCM guarantees that this clockdomain is
30 * clocks inside this clockdomain are not taken into account by
31 * the PRCM when determining whether the clockdomain is idle.
32 * Without this flag, if the clockdomain is set to
35 * inside the clockdomain and powerdomain are in use. (An example
36 * of such a clockdomain is the EMU clockdomain on OMAP3/4.) If
37 * this flag is set, and the clockdomain does not support the
39 * clockdomain to sleep. Similarly, if the clockdomain supports
41 * IP block inside the clockdomain is active, rather than the
58 * @clkdm: clockdomain to add wkdep+sleepdep on - set name member only
60 * A clockdomain that should have wkdeps and sleepdeps added when a
61 * clockdomain should stay active in hwsup mode; and conversely,
62 * removed when the clockdomain should be allowed to go inactive in
71 struct clockdomain *ptr;
77 * @clkdm_name: clockdomain name
78 * @clkdm: pointer to the struct clockdomain of @clkdm_name
89 struct clockdomain *clkdm;
94 /* Possible flags for struct clockdomain._flags */
100 * struct clockdomain - OMAP clockdomain
101 * @name: clockdomain name
102 * @pwrdm: powerdomain containing this clockdomain
106 * @_flags: Flags for use only by internal clockdomain code
107 * @dep_bit: Bit shift of this clockdomain's PM_WKDEP/CM_SLEEPDEP bit
110 * @clkdm_offs: (OMAP4 only) CM clockdomain register offset
123 struct clockdomain {
154 * @clkdm_sleep: Force a clockdomain to sleep
155 * @clkdm_wakeup: Force a clockdomain to wakeup
164 int (*clkdm_add_wkdep)(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
165 int (*clkdm_del_wkdep)(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
166 int (*clkdm_read_wkdep)(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
167 int (*clkdm_clear_all_wkdeps)(struct clockdomain *clkdm);
168 int (*clkdm_add_sleepdep)(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
169 int (*clkdm_del_sleepdep)(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
170 int (*clkdm_read_sleepdep)(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
171 int (*clkdm_clear_all_sleepdeps)(struct clockdomain *clkdm);
172 int (*clkdm_sleep)(struct clockdomain *clkdm);
173 int (*clkdm_wakeup)(struct clockdomain *clkdm);
174 void (*clkdm_allow_idle)(struct clockdomain *clkdm);
175 void (*clkdm_deny_idle)(struct clockdomain *clkdm);
176 int (*clkdm_clk_enable)(struct clockdomain *clkdm);
177 int (*clkdm_clk_disable)(struct clockdomain *clkdm);
178 int (*clkdm_save_context)(struct clockdomain *clkdm);
179 int (*clkdm_restore_context)(struct clockdomain *clkdm);
184 int clkdm_register_clkdms(struct clockdomain **c);
187 struct clockdomain *clkdm_lookup(const char *name);
189 int clkdm_for_each(int (*fn)(struct clockdomain *clkdm, void *user),
191 struct powerdomain *clkdm_get_pwrdm(struct clockdomain *clkdm);
193 int clkdm_add_wkdep(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
194 int clkdm_del_wkdep(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
195 int clkdm_read_wkdep(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
196 int clkdm_clear_all_wkdeps(struct clockdomain *clkdm);
197 int clkdm_add_sleepdep(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
198 int clkdm_del_sleepdep(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
199 int clkdm_read_sleepdep(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
200 int clkdm_clear_all_sleepdeps(struct clockdomain *clkdm);
202 void clkdm_allow_idle_nolock(struct clockdomain *clkdm);
203 void clkdm_allow_idle(struct clockdomain *clkdm);
204 void clkdm_deny_idle_nolock(struct clockdomain *clkdm);
205 void clkdm_deny_idle(struct clockdomain *clkdm);
207 int clkdm_wakeup(struct clockdomain *clkdm);
208 int clkdm_sleep(struct clockdomain *clkdm);
210 int clkdm_clk_enable(struct clockdomain *clkdm, struct clk *clk);
211 int clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk);
212 int clkdm_hwmod_enable(struct clockdomain *clkdm, struct omap_hwmod *oh);
213 int clkdm_hwmod_disable(struct clockdomain *clkdm, struct omap_hwmod *oh);
229 extern void clkdm_add_autodeps(struct clockdomain *clkdm);
230 extern void clkdm_del_autodeps(struct clockdomain *clkdm);
240 extern struct clockdomain wkup_common_clkdm;