linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/4] clk: zynqmp: Add firmware specific clock flags
@ 2021-06-28  7:01 Rajan Vaja
  2021-06-28  7:01 ` [PATCH v6 1/4] clk: zynqmp: Use firmware specific common " Rajan Vaja
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Rajan Vaja @ 2021-06-28  7:01 UTC (permalink / raw)
  To: mturquette, sboyd, michal.simek, lee.jones, kristo, quanyang.wang
  Cc: linux-clk, linux-arm-kernel, linux-kernel, Rajan Vaja

Currently firmware is maintaining CCF specific flags and provides to
CCF as it is. But CCF flag numbers may change and that shouldn't mean
that the firmware needs to change. The firmware should have its own
'flag number space' that is distinct from the common clk framework's
'flag number space'. So use firmware specific clock flags in ZynqMP
clock driver instead of CCF flags.

Changes in v6:
 - Removed flags not used by firmware

Changes in v5:
 - Added base commit
 - Added patch #4 to handle divider specific read only flag

Changes in v4:
 - Use if condition instead of ternary operator.

Changes in v3:
 - Modify helper function signature to map zynqmp (common)flags with CCF
 - Add helper function to map zynqmp (mux & divider)flags with CCF flags

Changes in v2:
 - Add helper function to map zynqmp (common)flags with CCF flags.
 - Mapped zynqmp clock flags with CCF flags from
   zynqmp_clk_register_*() functions instead of
   __zynqmp_clock_get_topology() which is changing the flags to struct
   clk_init_data instead of the struct clock_topology.

Rajan Vaja (4):
  clk: zynqmp: Use firmware specific common clock flags
  clk: zynqmp: Use firmware specific divider clock flags
  clk: zynqmp: Use firmware specific mux clock flags
  clk: zynqmp: Handle divider specific read only flag

 drivers/clk/zynqmp/clk-gate-zynqmp.c |  4 ++-
 drivers/clk/zynqmp/clk-mux-zynqmp.c  | 27 +++++++++++++++++--
 drivers/clk/zynqmp/clk-zynqmp.h      | 33 +++++++++++++++++++++++
 drivers/clk/zynqmp/clkc.c            | 25 ++++++++++++++++-
 drivers/clk/zynqmp/divider.c         | 40 +++++++++++++++++++++++++---
 drivers/clk/zynqmp/pll.c             |  4 ++-
 6 files changed, 124 insertions(+), 9 deletions(-)


base-commit: 6efb943b8616ec53a5e444193dccf1af9ad627b5
-- 
2.32.0.93.g670b81a


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

end of thread, other threads:[~2021-06-29  6:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28  7:01 [PATCH v6 0/4] clk: zynqmp: Add firmware specific clock flags Rajan Vaja
2021-06-28  7:01 ` [PATCH v6 1/4] clk: zynqmp: Use firmware specific common " Rajan Vaja
2021-06-29  6:10   ` Stephen Boyd
2021-06-29  6:10   ` Stephen Boyd
2021-06-28  7:01 ` [PATCH v6 2/4] clk: zynqmp: Use firmware specific divider " Rajan Vaja
2021-06-29  6:10   ` Stephen Boyd
2021-06-28  7:01 ` [PATCH v6 3/4] clk: zynqmp: Use firmware specific mux " Rajan Vaja
2021-06-29  6:10   ` Stephen Boyd
2021-06-28  7:01 ` [PATCH v6 4/4] clk: zynqmp: Handle divider specific read only flag Rajan Vaja
2021-06-29  6:10   ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).