Skip to content

clk: qcom: MISC RCG changes for SDM845

Amit Nischal linux-arm-msm linux-clk lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

* Changed usage of clk_hw_is_prepared() to __clk_is_enabled() in clk_rcg2_shared_ops to fix build test error.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2clk: qcom: Clear hardware clock control bit of RCGdrivers/clk/qcom/clk-rcg2.c+3 -20 replies
2/2clk: qcom: Configure the RCGs to a safe source as neededdrivers/clk/qcom/clk-rcg.h drivers/clk/qcom/clk-rcg2.c+156 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] clk: qcom: MISC RCG changes for SDM845

Changes in v2:
* Changed usage of clk_hw_is_prepared() to __clk_is_enabled() in clk_rcg2_shared_ops to fix build test error.

Changes in v1:
This patch series does the miscellaneous changes for RCGs used in SDM845.

1. Clear hardware clock control bit of RCGs where HW clock control bit is set by default so that software can control those root clocks.
2. Introduces clk_rcg2_shared_ops to support clock controller drivers for SDM845. With new shared ops, RCGs with shared branches will be configured to a safe source in disable path and actual RCG update configuration will be done in enable path instead of doing config update in set_rate. In set_rate(), just cache the rate instead of doing actual configuration update. Also each RCG in clock controller driver will have their own safe configuration frequency table to switch to safe frequency.

Amit Nischal (2):
clk: qcom: Clear hardware clock control bit of RCG
clk: qcom: Configure the RCGs to a safe source as needed

 drivers/clk/qcom/clk-rcg.h  |   8 ++-
 drivers/clk/qcom/clk-rcg2.c | 154 +++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 159 insertions(+), 3 deletions(-)

--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation