aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clockdomain.h
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/clockdomain.h
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/clockdomain.h')
-rw-r--r--arch/arm/mach-omap2/clockdomain.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/clockdomain.h b/arch/arm/mach-omap2/clockdomain.h
index 7a5cb5cf9949..7126658d9ae1 100644
--- a/arch/arm/mach-omap2/clockdomain.h
+++ b/arch/arm/mach-omap2/clockdomain.h
@@ -167,8 +167,8 @@ int clkdm_del_sleepdep(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
167int clkdm_read_sleepdep(struct clockdomain *clkdm1, struct clockdomain *clkdm2); 167int clkdm_read_sleepdep(struct clockdomain *clkdm1, struct clockdomain *clkdm2);
168int clkdm_clear_all_sleepdeps(struct clockdomain *clkdm); 168int clkdm_clear_all_sleepdeps(struct clockdomain *clkdm);
169 169
170void omap2_clkdm_allow_idle(struct clockdomain *clkdm); 170void clkdm_allow_idle(struct clockdomain *clkdm);
171void omap2_clkdm_deny_idle(struct clockdomain *clkdm); 171void clkdm_deny_idle(struct clockdomain *clkdm);
172 172
173int clkdm_wakeup(struct clockdomain *clkdm); 173int clkdm_wakeup(struct clockdomain *clkdm);
174int clkdm_sleep(struct clockdomain *clkdm); 174int clkdm_sleep(struct clockdomain *clkdm);
@@ -179,6 +179,8 @@ int omap2_clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk);
179extern void __init omap2xxx_clockdomains_init(void); 179extern void __init omap2xxx_clockdomains_init(void);
180extern void __init omap3xxx_clockdomains_init(void); 180extern void __init omap3xxx_clockdomains_init(void);
181extern void __init omap44xx_clockdomains_init(void); 181extern void __init omap44xx_clockdomains_init(void);
182extern void _clkdm_add_autodeps(struct clockdomain *clkdm);
183extern void _clkdm_del_autodeps(struct clockdomain *clkdm);
182 184
183extern struct clkdm_ops omap2_clkdm_operations; 185extern struct clkdm_ops omap2_clkdm_operations;
184extern struct clkdm_ops omap3_clkdm_operations; 186extern struct clkdm_ops omap3_clkdm_operations;