From d7c369c0b1849b349ff2fc4270b302e8d56fac26 Mon Sep 17 00:00:00 2001 From: Taniya Das Date: Fri, 19 Aug 2016 10:08:28 +0530 Subject: clk: qcom: clk-voter: Add support for voter clocks Voter clocks nodes would require aggregation of all child node rates. Certain clocks that are not rate-settable can still take advantage of voter clock functionality. Change-Id: Ibab7a5aa6aa89236974fcd0d65ffe0bd1a7acb12 Signed-off-by: Taniya Das --- include/linux/clk-provider.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 23026ba6ff25..0de2d0c780d7 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -669,6 +669,9 @@ void clk_hw_reparent(struct clk_hw *hw, struct clk_hw *new_parent); void clk_hw_set_rate_range(struct clk_hw *hw, unsigned long min_rate, unsigned long max_rate); +unsigned long clk_aggregate_rate(struct clk_hw *hw, + const struct clk_core *parent); + static inline void __clk_hw_set_clk(struct clk_hw *dst, struct clk_hw *src) { dst->clk = src->clk; -- cgit v1.2.3