1 #include <linux/list.h>
6 void (*enable)(struct clk *);
7 void (*disable)(struct clk *);
8 unsigned long (*getrate)(struct clk *);
12 struct list_head node;
15 const struct clkops *ops;
23 #define INIT_CKEN(_name, _cken, _rate, _delay, _dev) \
27 .ops = &clk_cken_ops, \
29 .cken = CKEN_##_cken, \
33 #define INIT_CK(_name, _cken, _ops, _dev) \
38 .cken = CKEN_##_cken, \
42 * This is a placeholder to alias one clock device+name pair
43 * to another struct clk.
45 #define INIT_CKOTHER(_name, _other, _dev) \
52 #define INIT_CLK(_name, _ops, _rate, _delay, _dev) \
61 extern const struct clkops clk_cken_ops;
63 void clk_cken_enable(struct clk *clk);
64 void clk_cken_disable(struct clk *clk);
67 #define PXA3xx_CKEN(_name, _cken, _rate, _delay, _dev) \
71 .ops = &clk_pxa3xx_cken_ops, \
73 .cken = CKEN_##_cken, \
77 #define PXA3xx_CK(_name, _cken, _ops, _dev) \
82 .cken = CKEN_##_cken, \
85 extern const struct clkops clk_pxa3xx_cken_ops;
86 extern void clk_pxa3xx_cken_enable(struct clk *);
87 extern void clk_pxa3xx_cken_disable(struct clk *);
90 void clks_register(struct clk *clks, size_t num);
91 int clk_add_alias(char *alias, struct device *alias_dev, char *id,