diff options
Diffstat (limited to 'arch/arm/mach-omap2/clockdomain44xx.c')
-rw-r--r-- | arch/arm/mach-omap2/clockdomain44xx.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clockdomain44xx.c b/arch/arm/mach-omap2/clockdomain44xx.c index 9ccb406cf54f..a46125f15454 100644 --- a/arch/arm/mach-omap2/clockdomain44xx.c +++ b/arch/arm/mach-omap2/clockdomain44xx.c | |||
@@ -29,7 +29,21 @@ static int omap4_clkdm_wakeup(struct clockdomain *clkdm) | |||
29 | return 0; | 29 | return 0; |
30 | } | 30 | } |
31 | 31 | ||
32 | static void omap4_clkdm_allow_idle(struct clockdomain *clkdm) | ||
33 | { | ||
34 | omap4_cminst_clkdm_enable_hwsup(clkdm->prcm_partition, | ||
35 | clkdm->cm_inst, clkdm->clkdm_offs); | ||
36 | } | ||
37 | |||
38 | static void omap4_clkdm_deny_idle(struct clockdomain *clkdm) | ||
39 | { | ||
40 | omap4_cminst_clkdm_disable_hwsup(clkdm->prcm_partition, | ||
41 | clkdm->cm_inst, clkdm->clkdm_offs); | ||
42 | } | ||
43 | |||
32 | struct clkdm_ops omap4_clkdm_operations = { | 44 | struct clkdm_ops omap4_clkdm_operations = { |
33 | .clkdm_sleep = omap4_clkdm_sleep, | 45 | .clkdm_sleep = omap4_clkdm_sleep, |
34 | .clkdm_wakeup = omap4_clkdm_wakeup, | 46 | .clkdm_wakeup = omap4_clkdm_wakeup, |
47 | .clkdm_allow_idle = omap4_clkdm_allow_idle, | ||
48 | .clkdm_deny_idle = omap4_clkdm_deny_idle, | ||
35 | }; | 49 | }; |