diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2010-11-21 21:49:55 -0500 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-12-16 01:31:19 -0500 |
commit | 4029813c89926ae5d78cc2dff49d845d934424f6 (patch) | |
tree | eaa7e075d3f369aa710ae4e26fdf80ab9cdd588b /arch/arm/mach-pxa/clock.h | |
parent | 2e8581e756ddbd0dea8b0d4059e9a82d2929de01 (diff) |
ARM: pxa: separate the clock support into clock-{pxa2xx,pxa3xx}.c
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/clock.h')
-rw-r--r-- | arch/arm/mach-pxa/clock.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/arch/arm/mach-pxa/clock.h b/arch/arm/mach-pxa/clock.h index f09ecb1a379e..04348781ad79 100644 --- a/arch/arm/mach-pxa/clock.h +++ b/arch/arm/mach-pxa/clock.h | |||
@@ -14,6 +14,12 @@ struct clk { | |||
14 | unsigned int enabled; | 14 | unsigned int enabled; |
15 | }; | 15 | }; |
16 | 16 | ||
17 | void clk_dummy_enable(struct clk *); | ||
18 | void clk_dummy_disable(struct clk *); | ||
19 | |||
20 | extern const struct clkops clk_dummy_ops; | ||
21 | extern struct clk clk_dummy; | ||
22 | |||
17 | #define INIT_CLKREG(_clk,_devname,_conname) \ | 23 | #define INIT_CLKREG(_clk,_devname,_conname) \ |
18 | { \ | 24 | { \ |
19 | .clk = _clk, \ | 25 | .clk = _clk, \ |
@@ -34,18 +40,18 @@ struct clk clk_##_name = { \ | |||
34 | .delay = _delay, \ | 40 | .delay = _delay, \ |
35 | } | 41 | } |
36 | 42 | ||
37 | #define DEFINE_CKEN(_name, _cken, _rate, _delay) \ | 43 | #define DEFINE_PXA2_CKEN(_name, _cken, _rate, _delay) \ |
38 | struct clk clk_##_name = { \ | 44 | struct clk clk_##_name = { \ |
39 | .ops = &clk_cken_ops, \ | 45 | .ops = &clk_pxa2xx_cken_ops, \ |
40 | .rate = _rate, \ | 46 | .rate = _rate, \ |
41 | .cken = CKEN_##_cken, \ | 47 | .cken = CKEN_##_cken, \ |
42 | .delay = _delay, \ | 48 | .delay = _delay, \ |
43 | } | 49 | } |
44 | 50 | ||
45 | extern const struct clkops clk_cken_ops; | 51 | extern const struct clkops clk_pxa2xx_cken_ops; |
46 | 52 | ||
47 | void clk_cken_enable(struct clk *clk); | 53 | void clk_pxa2xx_cken_enable(struct clk *clk); |
48 | void clk_cken_disable(struct clk *clk); | 54 | void clk_pxa2xx_cken_disable(struct clk *clk); |
49 | 55 | ||
50 | #ifdef CONFIG_PXA3xx | 56 | #ifdef CONFIG_PXA3xx |
51 | #define DEFINE_PXA3_CKEN(_name, _cken, _rate, _delay) \ | 57 | #define DEFINE_PXA3_CKEN(_name, _cken, _rate, _delay) \ |
@@ -57,7 +63,10 @@ struct clk clk_##_name = { \ | |||
57 | } | 63 | } |
58 | 64 | ||
59 | extern const struct clkops clk_pxa3xx_cken_ops; | 65 | extern const struct clkops clk_pxa3xx_cken_ops; |
66 | extern const struct clkops clk_pxa3xx_hsio_ops; | ||
67 | extern const struct clkops clk_pxa3xx_ac97_ops; | ||
68 | extern const struct clkops clk_pxa3xx_pout_ops; | ||
69 | |||
60 | extern void clk_pxa3xx_cken_enable(struct clk *); | 70 | extern void clk_pxa3xx_cken_enable(struct clk *); |
61 | extern void clk_pxa3xx_cken_disable(struct clk *); | 71 | extern void clk_pxa3xx_cken_disable(struct clk *); |
62 | #endif | 72 | #endif |
63 | |||