summaryrefslogtreecommitdiff
path: root/include/linux/clk/ti.h
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2013-06-18 16:27:57 +0300
committerMike Turquette <mturquette@linaro.org>2014-01-17 12:34:59 -0800
commitb1a07b478b63f0a8f971b3a82ce34a67a9324547 (patch)
treedc5d86884961efff9caaa25c277eac3b0d3c58df /include/linux/clk/ti.h
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/clk/ti.h')
-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);
void ti_dt_clk_init_provider(struct device_node *np, int index);
int ti_clk_retry_init(struct device_node *node, struct clk_hw *hw,
ti_of_clk_init_cb_t func);
+int of_ti_clk_autoidle_setup(struct device_node *node);
+
+#ifdef CONFIG_OF
+void of_ti_clk_allow_autoidle_all(void);
+void of_ti_clk_deny_autoidle_all(void);
+#else
+static inline void of_ti_clk_allow_autoidle_all(void) { }
+static inline void of_ti_clk_deny_autoidle_all(void) { }
+#endif
extern const struct clk_hw_omap_ops clkhwops_omap3_dpll;
extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx;