15 #include <linux/kernel.h>
20 static int omap4_clkdm_add_wkup_sleep_dep(
struct clockdomain *clkdm1,
30 static int omap4_clkdm_del_wkup_sleep_dep(
struct clockdomain *clkdm1,
40 static int omap4_clkdm_read_wkup_sleep_dep(
struct clockdomain *clkdm1,
49 static int omap4_clkdm_clear_all_wkup_sleep_deps(
struct clockdomain *clkdm)
61 mask |= 1 << cd->
clkdm->dep_bit;
71 static int omap4_clkdm_sleep(
struct clockdomain *clkdm)
78 static int omap4_clkdm_wakeup(
struct clockdomain *clkdm)
85 static void omap4_clkdm_allow_idle(
struct clockdomain *clkdm)
91 static void omap4_clkdm_deny_idle(
struct clockdomain *clkdm)
94 omap4_clkdm_wakeup(clkdm);
101 static int omap4_clkdm_clk_enable(
struct clockdomain *clkdm)
104 return omap4_clkdm_wakeup(clkdm);
109 static int omap4_clkdm_clk_disable(
struct clockdomain *clkdm)
123 omap4_clkdm_allow_idle(clkdm);
131 omap4_clkdm_sleep(clkdm);
137 .clkdm_add_wkdep = omap4_clkdm_add_wkup_sleep_dep,
138 .clkdm_del_wkdep = omap4_clkdm_del_wkup_sleep_dep,
139 .clkdm_read_wkdep = omap4_clkdm_read_wkup_sleep_dep,
140 .clkdm_clear_all_wkdeps = omap4_clkdm_clear_all_wkup_sleep_deps,
141 .clkdm_add_sleepdep = omap4_clkdm_add_wkup_sleep_dep,
142 .clkdm_del_sleepdep = omap4_clkdm_del_wkup_sleep_dep,
143 .clkdm_read_sleepdep = omap4_clkdm_read_wkup_sleep_dep,
144 .clkdm_clear_all_sleepdeps = omap4_clkdm_clear_all_wkup_sleep_deps,
145 .clkdm_sleep = omap4_clkdm_sleep,
146 .clkdm_wakeup = omap4_clkdm_wakeup,
147 .clkdm_allow_idle = omap4_clkdm_allow_idle,
148 .clkdm_deny_idle = omap4_clkdm_deny_idle,
149 .clkdm_clk_enable = omap4_clkdm_clk_enable,
150 .clkdm_clk_disable = omap4_clkdm_clk_disable,