diff options
| author | Tero Kristo <t-kristo@ti.com> | 2013-06-18 09:27:57 -0400 |
|---|---|---|
| committer | Mike Turquette <mturquette@linaro.org> | 2014-01-17 15:34:59 -0500 |
| commit | b1a07b478b63f0a8f971b3a82ce34a67a9324547 (patch) | |
| tree | dc5d86884961efff9caaa25c277eac3b0d3c58df /include/linux | |
| parent | f38b0dd63f0d0cca753bf0997eefdfb23dcc9518 (diff) | |
CLK: TI: add autoidle support
TI clk driver now routes some of the basic clocks through own
registration routine to allow autoidle support. This routine just
checks a couple of device node properties and adds autoidle support
if required, and just passes the registration forward to basic clocks.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/clk/ti.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/clk/ti.h b/include/linux/clk/ti.h index 3f9de3973582..ca38ee3620b1 100644 --- a/include/linux/clk/ti.h +++ b/include/linux/clk/ti.h | |||
| @@ -242,6 +242,15 @@ void ti_dt_clocks_register(struct ti_dt_clk *oclks); | |||
| 242 | void ti_dt_clk_init_provider(struct device_node *np, int index); | 242 | void ti_dt_clk_init_provider(struct device_node *np, int index); |
| 243 | int ti_clk_retry_init(struct device_node *node, struct clk_hw *hw, | 243 | int ti_clk_retry_init(struct device_node *node, struct clk_hw *hw, |
| 244 | ti_of_clk_init_cb_t func); | 244 | ti_of_clk_init_cb_t func); |
| 245 | int of_ti_clk_autoidle_setup(struct device_node *node); | ||
| 246 | |||
| 247 | #ifdef CONFIG_OF | ||
| 248 | void of_ti_clk_allow_autoidle_all(void); | ||
| 249 | void of_ti_clk_deny_autoidle_all(void); | ||
| 250 | #else | ||
| 251 | static inline void of_ti_clk_allow_autoidle_all(void) { } | ||
| 252 | static inline void of_ti_clk_deny_autoidle_all(void) { } | ||
| 253 | #endif | ||
| 245 | 254 | ||
| 246 | extern const struct clk_hw_omap_ops clkhwops_omap3_dpll; | 255 | extern const struct clk_hw_omap_ops clkhwops_omap3_dpll; |
| 247 | extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx; | 256 | extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx; |
