4 void (*enable)(struct clk *);
5 void (*disable)(struct clk *);
6 unsigned long (*getrate)(struct clk *);
10 struct list_head node;
13 const struct clkops *ops;
21 #define INIT_CKEN(_name, _cken, _rate, _delay, _dev) \
25 .ops = &clk_cken_ops, \
27 .cken = CKEN_##_cken, \
31 #define INIT_CK(_name, _cken, _ops, _dev) \
36 .cken = CKEN_##_cken, \
40 * This is a placeholder to alias one clock device+name pair
41 * to another struct clk.
43 #define INIT_CKOTHER(_name, _other, _dev) \
50 #define INIT_CLK(_name, _ops, _rate, _delay, _dev) \
59 extern const struct clkops clk_cken_ops;
61 void clk_cken_enable(struct clk *clk);
62 void clk_cken_disable(struct clk *clk);
65 #define PXA3xx_CKEN(_name, _cken, _rate, _delay, _dev) \
69 .ops = &clk_pxa3xx_cken_ops, \
71 .cken = CKEN_##_cken, \
75 #define PXA3xx_CK(_name, _cken, _ops, _dev) \
80 .cken = CKEN_##_cken, \
83 extern const struct clkops clk_pxa3xx_cken_ops;
84 extern void clk_pxa3xx_cken_enable(struct clk *);
85 extern void clk_pxa3xx_cken_disable(struct clk *);
88 void clks_register(struct clk *clks, size_t num);