aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2013-06-18 09:27:57 -0400
committerMike Turquette <mturquette@linaro.org>2014-01-17 15:34:59 -0500
commitb1a07b478b63f0a8f971b3a82ce34a67a9324547 (patch)
treedc5d86884961efff9caaa25c277eac3b0d3c58df /include/linux
parentf38b0dd63f0d0cca753bf0997eefdfb23dcc9518 (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.h9
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);
242void ti_dt_clk_init_provider(struct device_node *np, int index); 242void ti_dt_clk_init_provider(struct device_node *np, int index);
243int ti_clk_retry_init(struct device_node *node, struct clk_hw *hw, 243int 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);
245int of_ti_clk_autoidle_setup(struct device_node *node);
246
247#ifdef CONFIG_OF
248void of_ti_clk_allow_autoidle_all(void);
249void of_ti_clk_deny_autoidle_all(void);
250#else
251static inline void of_ti_clk_allow_autoidle_all(void) { }
252static inline void of_ti_clk_deny_autoidle_all(void) { }
253#endif
245 254
246extern const struct clk_hw_omap_ops clkhwops_omap3_dpll; 255extern const struct clk_hw_omap_ops clkhwops_omap3_dpll;
247extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx; 256extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx;