diff options
author | Steven Miao <realmz6@gmail.com> | 2012-05-16 05:49:52 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-05-21 02:54:13 -0400 |
commit | 969003152aa9085e50ce23822c60fab82222ecef (patch) | |
tree | ab12a8c8bf20706d624ef7ad6b540cc8776d954f /arch/blackfin/mach-common/clock.h | |
parent | b5affb0147cee0ea05d909396f8e389092729236 (diff) |
blackfin: bf60x: add clock support
Add clock support for bf60x.
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/mach-common/clock.h')
-rw-r--r-- | arch/blackfin/mach-common/clock.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/clock.h b/arch/blackfin/mach-common/clock.h new file mode 100644 index 000000000000..645ff460a1f2 --- /dev/null +++ b/arch/blackfin/mach-common/clock.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef __MACH_COMMON_CLKDEV_H | ||
2 | #define __MACH_COMMON_CLKDEV_H | ||
3 | |||
4 | #include <linux/clk.h> | ||
5 | |||
6 | struct clk_ops { | ||
7 | unsigned long (*get_rate)(struct clk *clk); | ||
8 | unsigned long (*round_rate)(struct clk *clk, unsigned long rate); | ||
9 | int (*set_rate)(struct clk *clk, unsigned long rate); | ||
10 | int (*enable)(struct clk *clk); | ||
11 | int (*disable)(struct clk *clk); | ||
12 | }; | ||
13 | |||
14 | struct clk { | ||
15 | const char *name; | ||
16 | unsigned long rate; | ||
17 | spinlock_t lock; | ||
18 | u32 flags; | ||
19 | const struct clk_ops *ops; | ||
20 | const struct params *params; | ||
21 | void __iomem *reg; | ||
22 | u32 mask; | ||
23 | u32 shift; | ||
24 | }; | ||
25 | |||
26 | #endif | ||
27 | |||