aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clockdomain44xx.c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2011-02-25 18:06:48 -0500
committerPaul Walmsley <paul@pwsan.com>2011-02-25 18:06:48 -0500
commit5cd1937b6d5990fe5d5287d925f05afd38e9fb02 (patch)
treebef088bf947646413c74f6d3d6ba28aa3921813e /arch/arm/mach-omap2/clockdomain44xx.c
parent68b921ad7f35e0323ce0d9fe94e5701a112f257c (diff)
OMAP: clockdomain: Arch specific funcs for hwsup control of clkdm
Define the following architecture specific funtions for omap2/3/4 .clkdm_allow_idle .clkdm_deny_idle Convert the platform-independent framework to call these functions. Also rename the api's by removing the omap2_ preamble. Hence call omap2_clkdm_allow_idle as clkdm_allow_idle and omap2_clkdm_deny_idle as clkdm_deny_idle. Make the _clkdm_add_autodeps and _clkdm_del_autodeps as non-static so they can be accessed from OMAP2/3 platform specific code. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clockdomain44xx.c')
-rw-r--r--arch/arm/mach-omap2/clockdomain44xx.c14
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
32static 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
38static 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
32struct clkdm_ops omap4_clkdm_operations = { 44struct 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};