clk: qcom: Properly change rates for ahbix clock
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 6 Mar 2015 23:41:53 +0000 (15:41 -0800)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 12 Mar 2015 19:20:30 +0000 (12:20 -0700)
commit9d3745d44a7faa7d24db7facb1949a1378162f3e
treed98f818f3c4c2011299f803e8b80aeda2f56c648
parent65bd20046f15c9c465df7aa9b86491e56e9c0d25
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>
drivers/clk/qcom/clk-rcg.c
drivers/clk/qcom/clk-rcg.h
drivers/clk/qcom/lcc-ipq806x.c