1 #include <asm/clkdev.h>
4 void (*enable
)(struct clk
*);
5 void (*disable
)(struct clk
*);
6 unsigned long (*getrate
)(struct clk
*);
10 const struct clkops
*ops
;
17 #define INIT_CLKREG(_clk,_devname,_conname) \
24 #define DEFINE_CKEN(_name, _cken, _rate, _delay) \
25 struct clk clk_##_name = { \
26 .ops = &clk_cken_ops, \
28 .cken = CKEN_##_cken, \
32 #define DEFINE_CK(_name, _cken, _ops) \
33 struct clk clk_##_name = { \
35 .cken = CKEN_##_cken, \
38 #define DEFINE_CLK(_name, _ops, _rate, _delay) \
39 struct clk clk_##_name = { \
45 extern const struct clkops clk_cken_ops
;
47 void clk_cken_enable(struct clk
*clk
);
48 void clk_cken_disable(struct clk
*clk
);
51 #define DEFINE_PXA3_CKEN(_name, _cken, _rate, _delay) \
52 struct clk clk_##_name = { \
53 .ops = &clk_pxa3xx_cken_ops, \
55 .cken = CKEN_##_cken, \
59 #define DEFINE_PXA3_CK(_name, _cken, _ops) \
60 struct clk clk_##_name = { \
62 .cken = CKEN_##_cken, \
65 extern const struct clkops clk_pxa3xx_cken_ops
;
66 extern void clk_pxa3xx_cken_enable(struct clk
*);
67 extern void clk_pxa3xx_cken_disable(struct clk
*);
70 void clks_register(struct clk_lookup
*clks
, size_t num
);
71 int clk_add_alias(const char *alias
, const char *alias_name
, char *id
,