aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/clock.h
diff options
context:
space:
mode:
authorEric Miao <eric.y.miao@gmail.com>2010-11-21 21:49:55 -0500
committerEric Miao <eric.y.miao@gmail.com>2010-12-16 01:31:19 -0500
commit4029813c89926ae5d78cc2dff49d845d934424f6 (patch)
treeeaa7e075d3f369aa710ae4e26fdf80ab9cdd588b /arch/arm/mach-pxa/clock.h
parent2e8581e756ddbd0dea8b0d4059e9a82d2929de01 (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.h21
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
17void clk_dummy_enable(struct clk *);
18void clk_dummy_disable(struct clk *);
19
20extern const struct clkops clk_dummy_ops;
21extern 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) \
38struct clk clk_##_name = { \ 44struct 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
45extern const struct clkops clk_cken_ops; 51extern const struct clkops clk_pxa2xx_cken_ops;
46 52
47void clk_cken_enable(struct clk *clk); 53void clk_pxa2xx_cken_enable(struct clk *clk);
48void clk_cken_disable(struct clk *clk); 54void 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
59extern const struct clkops clk_pxa3xx_cken_ops; 65extern const struct clkops clk_pxa3xx_cken_ops;
66extern const struct clkops clk_pxa3xx_hsio_ops;
67extern const struct clkops clk_pxa3xx_ac97_ops;
68extern const struct clkops clk_pxa3xx_pout_ops;
69
60extern void clk_pxa3xx_cken_enable(struct clk *); 70extern void clk_pxa3xx_cken_enable(struct clk *);
61extern void clk_pxa3xx_cken_disable(struct clk *); 71extern void clk_pxa3xx_cken_disable(struct clk *);
62#endif 72#endif
63