diff options
| author | Tero Kristo <t-kristo@ti.com> | 2014-02-24 09:06:34 -0500 |
|---|---|---|
| committer | Tero Kristo <t-kristo@ti.com> | 2014-05-28 05:30:02 -0400 |
| commit | 4d008589e271e28eae728eef7f5fb1f658f12b9f (patch) | |
| tree | 8b30eee15659aa978c5b452b65647662cc90c8c3 /include/linux | |
| parent | aa76fcf473f6bfa839f37f77b6fdb71f0fb88d8f (diff) | |
CLK: TI: APLL: add support for omap2 aplls
This patch adds support for omap2 type aplls, which have gating and
autoidle functionality.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/clk/ti.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/linux/clk/ti.h b/include/linux/clk/ti.h index 753878c6fa52..44bf84002a34 100644 --- a/include/linux/clk/ti.h +++ b/include/linux/clk/ti.h | |||
| @@ -94,7 +94,26 @@ struct dpll_data { | |||
| 94 | u8 flags; | 94 | u8 flags; |
| 95 | }; | 95 | }; |
| 96 | 96 | ||
| 97 | struct clk_hw_omap_ops; | 97 | struct clk_hw_omap; |
| 98 | |||
| 99 | /** | ||
| 100 | * struct clk_hw_omap_ops - OMAP clk ops | ||
| 101 | * @find_idlest: find idlest register information for a clock | ||
| 102 | * @find_companion: find companion clock register information for a clock, | ||
| 103 | * basically converts CM_ICLKEN* <-> CM_FCLKEN* | ||
| 104 | * @allow_idle: enables autoidle hardware functionality for a clock | ||
| 105 | * @deny_idle: prevent autoidle hardware functionality for a clock | ||
| 106 | */ | ||
| 107 | struct clk_hw_omap_ops { | ||
| 108 | void (*find_idlest)(struct clk_hw_omap *oclk, | ||
| 109 | void __iomem **idlest_reg, | ||
| 110 | u8 *idlest_bit, u8 *idlest_val); | ||
| 111 | void (*find_companion)(struct clk_hw_omap *oclk, | ||
| 112 | void __iomem **other_reg, | ||
| 113 | u8 *other_bit); | ||
| 114 | void (*allow_idle)(struct clk_hw_omap *oclk); | ||
| 115 | void (*deny_idle)(struct clk_hw_omap *oclk); | ||
| 116 | }; | ||
| 98 | 117 | ||
| 99 | /** | 118 | /** |
| 100 | * struct clk_hw_omap - OMAP struct clk | 119 | * struct clk_hw_omap - OMAP struct clk |
