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;
18 #define INIT_CLKREG(_clk,_devname,_conname) \
25 #define DEFINE_CKEN(_name, _cken, _rate, _delay) \
26 struct clk clk_##_name = { \
27 .ops = &clk_cken_ops, \
29 .cken = CKEN_##_cken, \
33 #define DEFINE_CK(_name, _cken, _ops) \
34 struct clk clk_##_name = { \
36 .cken = CKEN_##_cken, \
39 #define DEFINE_CLK(_name, _ops, _rate, _delay) \
40 struct clk clk_##_name = { \
46 extern const struct clkops clk_cken_ops;
48 void clk_cken_enable(struct clk *clk);
49 void clk_cken_disable(struct clk *clk);
52 #define DEFINE_PXA3_CKEN(_name, _cken, _rate, _delay) \
53 struct clk clk_##_name = { \
54 .ops = &clk_pxa3xx_cken_ops, \
56 .cken = CKEN_##_cken, \
60 #define DEFINE_PXA3_CK(_name, _cken, _ops) \
61 struct clk clk_##_name = { \
63 .cken = CKEN_##_cken, \
66 extern const struct clkops clk_pxa3xx_cken_ops;
67 extern void clk_pxa3xx_cken_enable(struct clk *);
68 extern void clk_pxa3xx_cken_disable(struct clk *);
71 void clks_register(struct clk_lookup *clks, size_t num);
72 int clk_add_alias(char *alias, struct device *alias_dev, char *id,