diff options
author | Rajendra Nayak <rnayak@ti.com> | 2011-02-25 18:06:47 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-02-25 18:06:47 -0500 |
commit | 68b921ad7f35e0323ce0d9fe94e5701a112f257c (patch) | |
tree | ec9af432b9a366604ce43370dfccc779ae2bc5f9 /arch/arm/mach-omap2/clockdomain.h | |
parent | 4aef7a2a5aad52b60ac1a2f3cee055b8271b70d5 (diff) |
OMAP: clockdomain: Arch specific funcs for sleep/wakeup of clkdm
Define the following architecture specific funtions for omap2/3/4
.clkdm_sleep
.clkdm_wakeup
Convert the platform-independent framework to call these functions.
Also rename the api's by removing the omap2_ preamble.
Hence call omap2_clkdm_wakeup as clkdm_wakeup and
omap2_clkdm_sleep as clkdm_sleep.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
[paul@pwsan.com: fixed omap3_clkdm_clear_all_sleepdeps() and
omap2_clkdm_clear_all_wkdeps() to test against the correct
loop termination condition; thanks to Kevin Hilman for finding and
helping fix]
Cc: Kevin Hilman <khilman@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.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/clockdomain.h b/arch/arm/mach-omap2/clockdomain.h index 90b6d6a50862..7a5cb5cf9949 100644 --- a/arch/arm/mach-omap2/clockdomain.h +++ b/arch/arm/mach-omap2/clockdomain.h | |||
@@ -170,8 +170,8 @@ int clkdm_clear_all_sleepdeps(struct clockdomain *clkdm); | |||
170 | void omap2_clkdm_allow_idle(struct clockdomain *clkdm); | 170 | void omap2_clkdm_allow_idle(struct clockdomain *clkdm); |
171 | void omap2_clkdm_deny_idle(struct clockdomain *clkdm); | 171 | void omap2_clkdm_deny_idle(struct clockdomain *clkdm); |
172 | 172 | ||
173 | int omap2_clkdm_wakeup(struct clockdomain *clkdm); | 173 | int clkdm_wakeup(struct clockdomain *clkdm); |
174 | int omap2_clkdm_sleep(struct clockdomain *clkdm); | 174 | int clkdm_sleep(struct clockdomain *clkdm); |
175 | 175 | ||
176 | int omap2_clkdm_clk_enable(struct clockdomain *clkdm, struct clk *clk); | 176 | int omap2_clkdm_clk_enable(struct clockdomain *clkdm, struct clk *clk); |
177 | int omap2_clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk); | 177 | int omap2_clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk); |
@@ -182,5 +182,6 @@ extern void __init omap44xx_clockdomains_init(void); | |||
182 | 182 | ||
183 | extern struct clkdm_ops omap2_clkdm_operations; | 183 | extern struct clkdm_ops omap2_clkdm_operations; |
184 | extern struct clkdm_ops omap3_clkdm_operations; | 184 | extern struct clkdm_ops omap3_clkdm_operations; |
185 | extern struct clkdm_ops omap4_clkdm_operations; | ||
185 | 186 | ||
186 | #endif | 187 | #endif |