15 #include <linux/types.h>
26 static int omap2_clkdm_add_wkdep(
struct clockdomain *clkdm1,
34 static int omap2_clkdm_del_wkdep(
struct clockdomain *clkdm1,
42 static int omap2_clkdm_read_wkdep(
struct clockdomain *clkdm1,
49 static int omap2_clkdm_clear_all_wkdeps(
struct clockdomain *clkdm)
59 mask |= 1 << cd->
clkdm->dep_bit;
68 static int omap3_clkdm_add_sleepdep(
struct clockdomain *clkdm1,
77 static int omap3_clkdm_del_sleepdep(
struct clockdomain *clkdm1,
86 static int omap3_clkdm_read_sleepdep(
struct clockdomain *clkdm1,
93 static int omap3_clkdm_clear_all_sleepdeps(
struct clockdomain *clkdm)
103 mask |= 1 << cd->
clkdm->dep_bit;
111 static int omap2_clkdm_sleep(
struct clockdomain *clkdm)
119 static int omap2_clkdm_wakeup(
struct clockdomain *clkdm)
127 static void omap2_clkdm_allow_idle(
struct clockdomain *clkdm)
136 static void omap2_clkdm_deny_idle(
struct clockdomain *clkdm)
145 static void _enable_hwsup(
struct clockdomain *clkdm)
155 static void _disable_hwsup(
struct clockdomain *clkdm)
165 static int omap3_clkdm_sleep(
struct clockdomain *clkdm)
172 static int omap3_clkdm_wakeup(
struct clockdomain *clkdm)
179 static int omap2_clkdm_clk_enable(
struct clockdomain *clkdm)
191 _disable_hwsup(clkdm);
193 _enable_hwsup(clkdm);
196 omap2_clkdm_wakeup(clkdm);
202 static int omap2_clkdm_clk_disable(
struct clockdomain *clkdm)
214 _disable_hwsup(clkdm);
216 _enable_hwsup(clkdm);
219 omap2_clkdm_sleep(clkdm);
225 static void omap3_clkdm_allow_idle(
struct clockdomain *clkdm)
234 static void omap3_clkdm_deny_idle(
struct clockdomain *clkdm)
243 static int omap3xxx_clkdm_clk_enable(
struct clockdomain *clkdm)
257 omap3_clkdm_wakeup(clkdm);
266 _disable_hwsup(clkdm);
268 _enable_hwsup(clkdm);
271 omap3_clkdm_wakeup(clkdm);
277 static int omap3xxx_clkdm_clk_disable(
struct clockdomain *clkdm)
291 _enable_hwsup(clkdm);
300 _disable_hwsup(clkdm);
302 _enable_hwsup(clkdm);
305 omap3_clkdm_sleep(clkdm);
312 .clkdm_add_wkdep = omap2_clkdm_add_wkdep,
313 .clkdm_del_wkdep = omap2_clkdm_del_wkdep,
314 .clkdm_read_wkdep = omap2_clkdm_read_wkdep,
315 .clkdm_clear_all_wkdeps = omap2_clkdm_clear_all_wkdeps,
316 .clkdm_sleep = omap2_clkdm_sleep,
317 .clkdm_wakeup = omap2_clkdm_wakeup,
318 .clkdm_allow_idle = omap2_clkdm_allow_idle,
319 .clkdm_deny_idle = omap2_clkdm_deny_idle,
320 .clkdm_clk_enable = omap2_clkdm_clk_enable,
321 .clkdm_clk_disable = omap2_clkdm_clk_disable,
325 .clkdm_add_wkdep = omap2_clkdm_add_wkdep,
326 .clkdm_del_wkdep = omap2_clkdm_del_wkdep,
327 .clkdm_read_wkdep = omap2_clkdm_read_wkdep,
328 .clkdm_clear_all_wkdeps = omap2_clkdm_clear_all_wkdeps,
329 .clkdm_add_sleepdep = omap3_clkdm_add_sleepdep,
330 .clkdm_del_sleepdep = omap3_clkdm_del_sleepdep,
331 .clkdm_read_sleepdep = omap3_clkdm_read_sleepdep,
332 .clkdm_clear_all_sleepdeps = omap3_clkdm_clear_all_sleepdeps,
333 .clkdm_sleep = omap3_clkdm_sleep,
334 .clkdm_wakeup = omap3_clkdm_wakeup,
335 .clkdm_allow_idle = omap3_clkdm_allow_idle,
336 .clkdm_deny_idle = omap3_clkdm_deny_idle,
337 .clkdm_clk_enable = omap3xxx_clkdm_clk_enable,
338 .clkdm_clk_disable = omap3xxx_clkdm_clk_disable,