aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/clk-provider.h
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2018-09-04 12:19:36 +0530
committerTero Kristo <t-kristo@ti.com>2018-10-03 15:29:15 +0300
commit435365485f40cf12747d1daa2253a4f4b46b8148 (patch)
tree62c9d83c8512fd4ac19afa38ce97c2a3165a57f4 /include/linux/clk-provider.h
parentclk: Add functions to save/restore clock context en-masse (diff)
downloadlinux-dev-435365485f40cf12747d1daa2253a4f4b46b8148.tar.xz
linux-dev-435365485f40cf12747d1daa2253a4f4b46b8148.zip
clk: clk: Add clk_gate_restore_context function
The clock gate restore context function enables or disables the gate clocks based on the enable_count. This is done in cases where the clock context is lost and based on the enable_count the clock either needs to be enabled/disabled. Signed-off-by: Keerthy <j-keerthy@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r--include/linux/clk-provider.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index df7379da6269..60c51871b04b 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -1018,5 +1018,7 @@ static inline void clk_writel(u32 val, u32 __iomem *reg)
#endif /* platform dependent I/O accessors */
+void clk_gate_restore_context(struct clk_hw *hw);
+
#endif /* CONFIG_COMMON_CLK */
#endif /* CLK_PROVIDER_H */