diff options
Diffstat (limited to 'arch/arm/mach-omap2/clock.h')
-rw-r--r-- | arch/arm/mach-omap2/clock.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index 1cf9dd85248a..a56742f96000 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h | |||
@@ -40,23 +40,29 @@ struct omap_clk { | |||
40 | struct clockdomain; | 40 | struct clockdomain; |
41 | 41 | ||
42 | #define DEFINE_STRUCT_CLK(_name, _parent_array_name, _clkops_name) \ | 42 | #define DEFINE_STRUCT_CLK(_name, _parent_array_name, _clkops_name) \ |
43 | static struct clk _name = { \ | 43 | static struct clk_core _name##_core = { \ |
44 | .name = #_name, \ | 44 | .name = #_name, \ |
45 | .hw = &_name##_hw.hw, \ | 45 | .hw = &_name##_hw.hw, \ |
46 | .parent_names = _parent_array_name, \ | 46 | .parent_names = _parent_array_name, \ |
47 | .num_parents = ARRAY_SIZE(_parent_array_name), \ | 47 | .num_parents = ARRAY_SIZE(_parent_array_name), \ |
48 | .ops = &_clkops_name, \ | 48 | .ops = &_clkops_name, \ |
49 | }; \ | ||
50 | static struct clk _name = { \ | ||
51 | .core = &_name##_core, \ | ||
49 | }; | 52 | }; |
50 | 53 | ||
51 | #define DEFINE_STRUCT_CLK_FLAGS(_name, _parent_array_name, \ | 54 | #define DEFINE_STRUCT_CLK_FLAGS(_name, _parent_array_name, \ |
52 | _clkops_name, _flags) \ | 55 | _clkops_name, _flags) \ |
53 | static struct clk _name = { \ | 56 | static struct clk_core _name##_core = { \ |
54 | .name = #_name, \ | 57 | .name = #_name, \ |
55 | .hw = &_name##_hw.hw, \ | 58 | .hw = &_name##_hw.hw, \ |
56 | .parent_names = _parent_array_name, \ | 59 | .parent_names = _parent_array_name, \ |
57 | .num_parents = ARRAY_SIZE(_parent_array_name), \ | 60 | .num_parents = ARRAY_SIZE(_parent_array_name), \ |
58 | .ops = &_clkops_name, \ | 61 | .ops = &_clkops_name, \ |
59 | .flags = _flags, \ | 62 | .flags = _flags, \ |
63 | }; \ | ||
64 | static struct clk _name = { \ | ||
65 | .core = &_name##_core, \ | ||
60 | }; | 66 | }; |
61 | 67 | ||
62 | #define DEFINE_STRUCT_CLK_HW_OMAP(_name, _clkdm_name) \ | 68 | #define DEFINE_STRUCT_CLK_HW_OMAP(_name, _clkdm_name) \ |
@@ -238,7 +244,6 @@ struct ti_clk_features { | |||
238 | extern struct ti_clk_features ti_clk_features; | 244 | extern struct ti_clk_features ti_clk_features; |
239 | 245 | ||
240 | extern const struct clkops clkops_omap2_dflt_wait; | 246 | extern const struct clkops clkops_omap2_dflt_wait; |
241 | extern const struct clkops clkops_dummy; | ||
242 | extern const struct clkops clkops_omap2_dflt; | 247 | extern const struct clkops clkops_omap2_dflt; |
243 | 248 | ||
244 | extern struct clk_functions omap2_clk_functions; | 249 | extern struct clk_functions omap2_clk_functions; |
@@ -247,7 +252,6 @@ extern const struct clksel_rate gpt_32k_rates[]; | |||
247 | extern const struct clksel_rate gpt_sys_rates[]; | 252 | extern const struct clksel_rate gpt_sys_rates[]; |
248 | extern const struct clksel_rate gfx_l3_rates[]; | 253 | extern const struct clksel_rate gfx_l3_rates[]; |
249 | extern const struct clksel_rate dsp_ick_rates[]; | 254 | extern const struct clksel_rate dsp_ick_rates[]; |
250 | extern struct clk dummy_ck; | ||
251 | 255 | ||
252 | extern const struct clk_hw_omap_ops clkhwops_iclk_wait; | 256 | extern const struct clk_hw_omap_ops clkhwops_iclk_wait; |
253 | extern const struct clk_hw_omap_ops clkhwops_wait; | 257 | extern const struct clk_hw_omap_ops clkhwops_wait; |
@@ -272,7 +276,5 @@ extern void __iomem *clk_memmaps[]; | |||
272 | extern int omap2_clkops_enable_clkdm(struct clk_hw *hw); | 276 | extern int omap2_clkops_enable_clkdm(struct clk_hw *hw); |
273 | extern void omap2_clkops_disable_clkdm(struct clk_hw *hw); | 277 | extern void omap2_clkops_disable_clkdm(struct clk_hw *hw); |
274 | 278 | ||
275 | extern void omap_clocks_register(struct omap_clk *oclks, int cnt); | ||
276 | |||
277 | void __init ti_clk_init_features(void); | 279 | void __init ti_clk_init_features(void); |
278 | #endif | 280 | #endif |