]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
clk: qcom: Fix sdc 144kHz frequency entry
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 29 Aug 2014 19:49:26 +0000 (12:49 -0700)
committerMike Turquette <mturquette@linaro.org>
Tue, 2 Sep 2014 23:52:28 +0000 (16:52 -0700)
commitd8210e28e5807091f38d064142223e8787cc9883
tree38fc1b750e0760768b0fd6e452ab3db6409cf3da
parente8531ac8b21a3e89db8729d2cd9de43b09818092
clk: qcom: Fix sdc 144kHz frequency entry

The pre-divider for the sdc clocks only has 2 bits in it, so we
can't possibly divide by anything larger than 4 here.
Furthermore, we program the value of ~(n - m) and the n value is
larger than 8 bits (max of 256). Replace this entry with 200kHz
which is close enough to 144kHz to be usable.

Cc: Kumar Gala <galak@codeaurora.org>
Cc: Andy Gross <agross@codeaurora.org>
Fixes: 24d8fba44af3 "clk: qcom: Add support for IPQ8064's global clock controller (GCC)"
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/qcom/gcc-ipq806x.c