diff options
| -rw-r--r-- | arch/arm/mach-omap2/clock.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index b40204837bd7..60ddd8612b4d 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h | |||
| @@ -65,6 +65,17 @@ struct clockdomain; | |||
| 65 | .ops = &_clkops_name, \ | 65 | .ops = &_clkops_name, \ |
| 66 | }; | 66 | }; |
| 67 | 67 | ||
| 68 | #define DEFINE_STRUCT_CLK_FLAGS(_name, _parent_array_name, \ | ||
| 69 | _clkops_name, _flags) \ | ||
| 70 | static struct clk _name = { \ | ||
| 71 | .name = #_name, \ | ||
| 72 | .hw = &_name##_hw.hw, \ | ||
| 73 | .parent_names = _parent_array_name, \ | ||
| 74 | .num_parents = ARRAY_SIZE(_parent_array_name), \ | ||
| 75 | .ops = &_clkops_name, \ | ||
| 76 | .flags = _flags, \ | ||
| 77 | }; | ||
| 78 | |||
| 68 | #define DEFINE_STRUCT_CLK_HW_OMAP(_name, _clkdm_name) \ | 79 | #define DEFINE_STRUCT_CLK_HW_OMAP(_name, _clkdm_name) \ |
| 69 | static struct clk_hw_omap _name##_hw = { \ | 80 | static struct clk_hw_omap _name##_hw = { \ |
| 70 | .hw = { \ | 81 | .hw = { \ |
