]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: Add rcg ops to return floor value closest to the requested rate
authorRajendra Nayak <rnayak@codeaurora.org>
Mon, 21 Nov 2016 06:37:11 +0000 (12:07 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 23 Nov 2016 19:00:05 +0000 (11:00 -0800)
commit6fd86eeb3c2431361b03ae7dfc8969a7e9d8e439
tree82a093ec8ca01dd8fe7173ce23964873c5696d09
parent79fecc5fda03d60945423bf3657a9b424ad186f8
clk: qcom: Add rcg ops to return floor value closest to the requested rate

The default behaviour with clk_rcg2_ops is for the
clk_round_rate()/clk_set_rate() to return/set a ceil clock
rate closest to the requested rate by looking up the corresponding
frequency table.
However, we do have some instances (mainly sdcc on various platforms)
of clients expecting a clk_set_rate() to set a floor value instead.
Add a new clk_rcg2_floor_ops to handle this for such specific
rcg instances

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Ritesh Harjani <riteshh@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/common.c
drivers/clk/qcom/common.h