aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/mach/clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap/include/mach/clock.h')
-rw-r--r--arch/arm/plat-omap/include/mach/clock.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/include/mach/clock.h b/arch/arm/plat-omap/include/mach/clock.h
index 4e8f59df30b..4fe5084e8cc 100644
--- a/arch/arm/plat-omap/include/mach/clock.h
+++ b/arch/arm/plat-omap/include/mach/clock.h
@@ -17,6 +17,11 @@ struct module;
17struct clk; 17struct clk;
18struct clockdomain; 18struct clockdomain;
19 19
20struct clkops {
21 int (*enable)(struct clk *);
22 void (*disable)(struct clk *);
23};
24
20#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) 25#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
21 26
22struct clksel_rate { 27struct clksel_rate {
@@ -59,6 +64,7 @@ struct dpll_data {
59 64
60struct clk { 65struct clk {
61 struct list_head node; 66 struct list_head node;
67 const struct clkops *ops;
62 struct module *owner; 68 struct module *owner;
63 const char *name; 69 const char *name;
64 int id; 70 int id;
@@ -72,8 +78,6 @@ struct clk {
72 int (*set_rate)(struct clk *, unsigned long); 78 int (*set_rate)(struct clk *, unsigned long);
73 long (*round_rate)(struct clk *, unsigned long); 79 long (*round_rate)(struct clk *, unsigned long);
74 void (*init)(struct clk *); 80 void (*init)(struct clk *);
75 int (*enable)(struct clk *);
76 void (*disable)(struct clk *);
77#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) 81#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
78 u8 fixed_div; 82 u8 fixed_div;
79 void __iomem *clksel_reg; 83 void __iomem *clksel_reg;