public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/3] clk: qcom: provide alternative 'parked' RCG
@ 2023-10-04  1:23 Dmitry Baryshkov
  2023-10-04  1:23 ` [RFC PATCH v2 1/3] clk: qcom: add helper to map parent source to cfg value Dmitry Baryshkov
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Dmitry Baryshkov @ 2023-10-04  1:23 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Stephen Boyd,
	Michael Turquette, Taniya Das
  Cc: linux-arm-msm, linux-clk, freedreno, Rob Clark

Implement an alternative for the clk_rcg2_shared_ops, which also
implements a proper is_enabled callback. Note, to use
clk_rcg2_parked_ops one must remove XO (safe source) from the
parent_data, parent_map and freq_table.

Changes since v1:
- Replaced a call to clk_rcg2_is_enabled() with check of the CFG_ROOT_EN
  field (Stephen Boyd).
- Added the init function, reading the default clock configuration and
  then defaulting to the lowest supported freq / parent if the clock was
  not configured at all (Stephen Boyd).
- Dropped P_BI_TCXO from freq_tables too.

Dmitry Baryshkov (3):
  clk: qcom: add helper to map parent source to cfg value
  clk: qcom: implement RCG2 'parked' clock support
  clk: qcom: dispcc-sm8250: switch to clk_rcg2_parked_ops

 drivers/clk/qcom/clk-rcg.h       |  1 +
 drivers/clk/qcom/clk-rcg2.c      | 56 ++++++++++++++++++++++++++++++++
 drivers/clk/qcom/common.c        | 12 +++++++
 drivers/clk/qcom/common.h        |  2 ++
 drivers/clk/qcom/dispcc-sm8250.c | 13 ++------
 5 files changed, 74 insertions(+), 10 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-11-10  2:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-04  1:23 [RFC PATCH v2 0/3] clk: qcom: provide alternative 'parked' RCG Dmitry Baryshkov
2023-10-04  1:23 ` [RFC PATCH v2 1/3] clk: qcom: add helper to map parent source to cfg value Dmitry Baryshkov
2023-10-04  1:23 ` [RFC PATCH v2 2/3] clk: qcom: implement RCG2 'parked' clock support Dmitry Baryshkov
2023-11-04  1:24   ` Stephen Boyd
2023-11-07  1:36     ` Stephen Boyd
2023-11-07  2:00       ` Dmitry Baryshkov
2023-11-07 22:50         ` Stephen Boyd
2023-11-08  3:18           ` Stephen Boyd
2023-11-09  4:20             ` Stephen Boyd
2023-11-10  2:25               ` Stephen Boyd
2023-10-04  1:23 ` [RFC PATCH v2 3/3] clk: qcom: dispcc-sm8250: switch to clk_rcg2_parked_ops Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox