]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: qcom: Allow clk_set_parent() to work on display clocks
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 10 Apr 2015 06:02:02 +0000 (23:02 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 16 Sep 2015 22:22:18 +0000 (15:22 -0700)
commit8ee9c7de019596445fd81e7647f5509d90e2fb72
treef877edf0cbedbcb87f87a30ca1de822630a2c579
parentdb544f1b583aadc818b00ff528eb1744b3bbcac6
clk: qcom: Allow clk_set_parent() to work on display clocks

Sometimes the display driver may want to change the parent PLL of
the display clocks (byte and pixel clocks) depending on the
use-case. Currently the parent is fixed by means of having a
frequency table with one entry that chooses a particular parent.
Remove this restriction and use the parent the clock is
configured for in the hardware during clk_set_rate(). This
requires consumers to rely on the default parent or to configure
the parent with clk_set_parent()/assigned-clock-parents on the
clocks before calling clk_set_rate().

Tested-by: Archit Taneja <architt@codeaurora.org>
Cc: Hai Li <hali@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/qcom/clk-rcg.h
drivers/clk/qcom/clk-rcg2.c
drivers/clk/qcom/gcc-msm8916.c
drivers/clk/qcom/mmcc-apq8084.c
drivers/clk/qcom/mmcc-msm8974.c