summaryrefslogtreecommitdiffstats
path: root/drivers/clk/qcom/clk-rcg.h
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-03-06 15:41:53 -0800
committerStephen Boyd <sboyd@codeaurora.org>2015-03-12 12:20:30 -0700
commit9d3745d44a7faa7d24db7facb1949a1378162f3e (patch)
treed98f818f3c4c2011299f803e8b80aeda2f56c648 /drivers/clk/qcom/clk-rcg.h
parent65bd20046f15c9c465df7aa9b86491e56e9c0d25 (diff)
downloadtalos-op-linux-9d3745d44a7faa7d24db7facb1949a1378162f3e.tar.gz
talos-op-linux-9d3745d44a7faa7d24db7facb1949a1378162f3e.zip
clk: qcom: Properly change rates for ahbix clock
The ahbix clock can never be turned off in practice. To change the rates we need to switch the mux off the M/N counter to an always on source (XO), reprogram the M/N counter to get the rate we want and finally switch back to the M/N counter. Add a new ops structure for this type of clock so that we can set the rate properly. Fixes: c99e515a92e9 "clk: qcom: Add IPQ806X LPASS clock controller (LCC) driver" Tested-by: Kenneth Westfield <kwestfie@codeaurora.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/qcom/clk-rcg.h')
-rw-r--r--drivers/clk/qcom/clk-rcg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-rcg.h b/drivers/clk/qcom/clk-rcg.h
index 687e41f91d7c..d09d06ba278e 100644
--- a/drivers/clk/qcom/clk-rcg.h
+++ b/drivers/clk/qcom/clk-rcg.h
@@ -96,6 +96,7 @@ struct clk_rcg {
extern const struct clk_ops clk_rcg_ops;
extern const struct clk_ops clk_rcg_bypass_ops;
+extern const struct clk_ops clk_rcg_lcc_ops;
#define to_clk_rcg(_hw) container_of(to_clk_regmap(_hw), struct clk_rcg, clkr)
OpenPOWER on IntegriCloud