Lines Matching refs:clkdm
171 static void omap2xxx_clkdm_allow_idle(struct clockdomain *clkdm) in omap2xxx_clkdm_allow_idle() argument
173 omap2xxx_cm_clkdm_enable_hwsup(clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_allow_idle()
174 clkdm->clktrctrl_mask); in omap2xxx_clkdm_allow_idle()
177 static void omap2xxx_clkdm_deny_idle(struct clockdomain *clkdm) in omap2xxx_clkdm_deny_idle() argument
179 omap2xxx_cm_clkdm_disable_hwsup(clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_deny_idle()
180 clkdm->clktrctrl_mask); in omap2xxx_clkdm_deny_idle()
183 static int omap2xxx_clkdm_clk_enable(struct clockdomain *clkdm) in omap2xxx_clkdm_clk_enable() argument
187 if (!clkdm->clktrctrl_mask) in omap2xxx_clkdm_clk_enable()
190 hwsup = omap2xxx_cm_is_clkdm_in_hwsup(clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_clk_enable()
191 clkdm->clktrctrl_mask); in omap2xxx_clkdm_clk_enable()
192 if (!hwsup && clkdm->flags & CLKDM_CAN_FORCE_WAKEUP) in omap2xxx_clkdm_clk_enable()
193 omap2xxx_clkdm_wakeup(clkdm); in omap2xxx_clkdm_clk_enable()
198 static int omap2xxx_clkdm_clk_disable(struct clockdomain *clkdm) in omap2xxx_clkdm_clk_disable() argument
202 if (!clkdm->clktrctrl_mask) in omap2xxx_clkdm_clk_disable()
205 hwsup = omap2xxx_cm_is_clkdm_in_hwsup(clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_clk_disable()
206 clkdm->clktrctrl_mask); in omap2xxx_clkdm_clk_disable()
208 if (!hwsup && clkdm->flags & CLKDM_CAN_FORCE_SLEEP) in omap2xxx_clkdm_clk_disable()
209 omap2xxx_clkdm_sleep(clkdm); in omap2xxx_clkdm_clk_disable()