linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] clk: zynqmp: Add firmware specific clock flags
@ 2020-07-22  6:55 Amit Sunil Dhamne
  2020-07-22  6:55 ` [PATCH v2 1/3] clk: zynqmp: Use firmware specific common " Amit Sunil Dhamne
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Amit Sunil Dhamne @ 2020-07-22  6:55 UTC (permalink / raw)
  To: mturquette, m.tretter, sboyd, sboyd, michal.simek, mark.rutland,
	linux-clk
  Cc: rajanv, jollys, tejasp, linux-arm-kernel, linux-kernel,
	Amit Sunil Dhamne

This series adds supports for firmware specific flags. These include
- Common Flags
- Divider Flags
- Mux Flags

The intent is to remove firmware's dependency on CCF flag values by having
firmware specific flags with independent values.

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 v2:
 - Add helper function to map zynqmp 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 (3):
  clk: zynqmp: Use firmware specific common clock flags
  clk: zynqmp: Use firmware specific divider clock flags
  clk: zynqmp: Use firmware specific mux clock flags

 drivers/clk/zynqmp/clk-gate-zynqmp.c |  4 +++-
 drivers/clk/zynqmp/clk-mux-zynqmp.c  | 18 ++++++++++++++--
 drivers/clk/zynqmp/clk-zynqmp.h      | 42 ++++++++++++++++++++++++++++++++++++
 drivers/clk/zynqmp/clkc.c            | 31 +++++++++++++++++++++++++-
 drivers/clk/zynqmp/divider.c         | 21 +++++++++++++++---
 drivers/clk/zynqmp/pll.c             |  4 +++-
 6 files changed, 112 insertions(+), 8 deletions(-)

--
2.7.4

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

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

end of thread, other threads:[~2020-07-23 23:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-22  6:55 [PATCH v2 0/3] clk: zynqmp: Add firmware specific clock flags Amit Sunil Dhamne
2020-07-22  6:55 ` [PATCH v2 1/3] clk: zynqmp: Use firmware specific common " Amit Sunil Dhamne
2020-07-22 13:22   ` Michael Tretter
2020-07-23 23:46     ` Amit Sunil Dhamne
2020-07-22  6:55 ` [PATCH v2 2/3] clk: zynqmp: Use firmware specific divider " Amit Sunil Dhamne
2020-07-22 13:27   ` Michael Tretter
2020-07-23 23:59     ` Amit Sunil Dhamne
2020-07-22  6:55 ` [PATCH v2 3/3] clk: zynqmp: Use firmware specific mux " Amit Sunil Dhamne
2020-07-22 13:28   ` Michael Tretter
2020-07-23 22:35 ` [PATCH v2 0/3] clk: zynqmp: Add firmware specific " 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).