1
2
3
4
5
6
7
8
9
10
11
12
13
14#include <linux/clk.h>
15#include <linux/list.h>
16
17
18void at32_clk_register(struct clk *clk);
19
20struct clk {
21 struct list_head list;
22 const char *name;
23 struct device *dev;
24 struct clk *parent;
25 void (*mode)(struct clk *clk, int enabled);
26 unsigned long (*get_rate)(struct clk *clk);
27 long (*set_rate)(struct clk *clk, unsigned long rate,
28 int apply);
29 int (*set_parent)(struct clk *clk, struct clk *parent);
30 u16 users;
31 u16 index;
32};
33
34unsigned long pba_clk_get_rate(struct clk *clk);
35void pba_clk_mode(struct clk *clk, int enabled);
36