diff options
author | Rajendra Nayak <rnayak@ti.com> | 2012-04-27 06:23:48 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-11-12 21:10:18 -0500 |
commit | b4777a21381fd1f87be8c606a616b7f97f485d2b (patch) | |
tree | af45be72d14dde6fc899ac2ad5f9984f1bfa5cd5 /arch/arm/mach-omap2/clkt_iclk.c | |
parent | 32cc002116b866151ca24c6e9110ba8a93754753 (diff) |
ARM: OMAP3: clock: Convert to common clk
Convert all OMAP3 specific platform files to use COMMON clk
and keep all the changes under the CONFIG_COMMON_CLK macro check
so it does not break any existing code. At a later point switch
to COMMON clk and get rid of all old/legacy code.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Mike Turquette <mturquette@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clkt_iclk.c')
-rw-r--r-- | arch/arm/mach-omap2/clkt_iclk.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clkt_iclk.c b/arch/arm/mach-omap2/clkt_iclk.c index 3b661ba73fc2..650c8c77a573 100644 --- a/arch/arm/mach-omap2/clkt_iclk.c +++ b/arch/arm/mach-omap2/clkt_iclk.c | |||
@@ -27,7 +27,11 @@ | |||
27 | /* Private functions */ | 27 | /* Private functions */ |
28 | 28 | ||
29 | /* XXX */ | 29 | /* XXX */ |
30 | #ifdef CONFIG_COMMON_CLK | ||
31 | void omap2_clkt_iclk_allow_idle(struct clk_hw_omap *clk) | ||
32 | #else | ||
30 | void omap2_clkt_iclk_allow_idle(struct clk *clk) | 33 | void omap2_clkt_iclk_allow_idle(struct clk *clk) |
34 | #endif | ||
31 | { | 35 | { |
32 | u32 v, r; | 36 | u32 v, r; |
33 | 37 | ||
@@ -39,7 +43,11 @@ void omap2_clkt_iclk_allow_idle(struct clk *clk) | |||
39 | } | 43 | } |
40 | 44 | ||
41 | /* XXX */ | 45 | /* XXX */ |
46 | #ifdef CONFIG_COMMON_CLK | ||
47 | void omap2_clkt_iclk_deny_idle(struct clk_hw_omap *clk) | ||
48 | #else | ||
42 | void omap2_clkt_iclk_deny_idle(struct clk *clk) | 49 | void omap2_clkt_iclk_deny_idle(struct clk *clk) |
50 | #endif | ||
43 | { | 51 | { |
44 | u32 v, r; | 52 | u32 v, r; |
45 | 53 | ||
@@ -53,6 +61,11 @@ void omap2_clkt_iclk_deny_idle(struct clk *clk) | |||
53 | /* Public data */ | 61 | /* Public data */ |
54 | 62 | ||
55 | #ifdef CONFIG_COMMON_CLK | 63 | #ifdef CONFIG_COMMON_CLK |
64 | const struct clk_hw_omap_ops clkhwops_iclk = { | ||
65 | .allow_idle = omap2_clkt_iclk_allow_idle, | ||
66 | .deny_idle = omap2_clkt_iclk_deny_idle, | ||
67 | }; | ||
68 | |||
56 | const struct clk_hw_omap_ops clkhwops_iclk_wait = { | 69 | const struct clk_hw_omap_ops clkhwops_iclk_wait = { |
57 | .allow_idle = omap2_clkt_iclk_allow_idle, | 70 | .allow_idle = omap2_clkt_iclk_allow_idle, |
58 | .deny_idle = omap2_clkt_iclk_deny_idle, | 71 | .deny_idle = omap2_clkt_iclk_deny_idle, |