diff options
author | Afzal Mohammed <afzal@ti.com> | 2013-01-23 06:42:05 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2013-01-31 11:27:49 -0500 |
commit | 601155b04c2e93c00644003811f59444a9e356e2 (patch) | |
tree | 58b36d6e383a92cd75183aa2171f675d21d58732 | |
parent | bb0b7320a72ec899e27b5a852851607ab1305541 (diff) |
ARM: OMAP2+: clock data: add DEFINE_STRUCT_CLK_FLAGS helper
DEFINE_STRUCT_CLK does not have the capability to set flags, define
DEFINE_STRUCT_CLK_FLAGS to handle flags. This is needed to add
SET_RATE_PARENT flag in statically defined lcd clock in am335x.
Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
-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 = { \ |