OSDN Git Service

clk: qcom: Retrieve pre_div from freq_tbl for shared RCG
authorTaniya Das <tdas@codeaurora.org>
Mon, 23 Apr 2018 03:59:58 +0000 (09:29 +0530)
committerTaniya Das <tdas@codeaurora.org>
Tue, 24 Apr 2018 07:14:50 +0000 (12:44 +0530)
commit278e58fc5c456fcf92e7ad2ddcb2c3d9010e3d68
tree3b43bdc3962469430fcbe608eef8be917ecacdb1
parent9be90e52bccaa2ac185922ff3339508576ace5d6
clk: qcom: Retrieve pre_div from freq_tbl for shared RCG

There could be cases where a simultaneous clk_disable and clk_set_rate on
the same rcg could result in a wrong recalc rate. So for shared rcgs
get the pre_div value based on the current frequency from the frequency
table.

Change-Id: I575855a3a054bb405f54e1ae0d5feba755aada18
Signed-off-by: Taniya Das <tdas@codeaurora.org>
drivers/clk/qcom/clk-rcg2.c