]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5011f8d584948199c63370a4faffedfe2da04dd7
treed98f818f3c4c2011299f803e8b80aeda2f56c648
parentb36d88c163021734f0279d5773dc2161d8121580
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: a25151b9bb37 "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