linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] clk: Add regmap support for clk mulitplexer
@ 2015-05-28 18:41 Matthias Brugger
  2015-05-28 18:41 ` [PATCH 1/3] clk: mux: Add regmap support for simple mux Matthias Brugger
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Matthias Brugger @ 2015-05-28 18:41 UTC (permalink / raw)
  To: linux-arm-kernel

This patch set adds regmap support for the simple clock multiplexer.
Regmap use, apart from a pointer to the regmap struct needs an
offset value to know where in the regmap it has to read/write.
We add both fields to struct clk_mux.

The driver will distinguish between a clock which is based on regmap or not
through a flag specified for the mux.
The approach does not break the existing clock framework API but adds two
new functions for registering regmap clocks. Unregistering the clocks is
independent of the use of regmap or not, so that no new function was
implemented.

As an example user of the regmap clock multiplexer, it was implemented on
the mt8135. When accepted it will also be applied to the other Mediatek SoCs.
Other possible user are Qualcomm SoCs which up to now implement their own
regmap based clock multiplexer.

Any comments welcome.

Matthias Brugger (3):
  clk: mux: Add regmap support for simple mux
  clk: mediatek: Add support for clk-mux using regmap
  clk: mediatek: Use regmap clk-mux for mt8135

 drivers/clk/clk-mux.c             | 103 ++++++++++++++++++++++++++++++++++----
 drivers/clk/mediatek/clk-mt8135.c |  21 +++-----
 drivers/clk/mediatek/clk-mtk.c    |  37 ++++++++++++++
 drivers/clk/mediatek/clk-mtk.h    |  26 ++++++++++
 include/linux/clk-provider.h      |  40 +++++++++++++++
 5 files changed, 202 insertions(+), 25 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2015-05-29 15:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-28 18:41 [PATCH 0/3] clk: Add regmap support for clk mulitplexer Matthias Brugger
2015-05-28 18:41 ` [PATCH 1/3] clk: mux: Add regmap support for simple mux Matthias Brugger
2015-05-29  6:40   ` Sascha Hauer
2015-05-29 15:24     ` Matthias Brugger
2015-05-29  6:57   ` Joachim Eastwood
2015-05-29 15:58     ` Matthias Brugger
2015-05-28 18:41 ` [PATCH 2/3] clk: mediatek: Add support for clk-mux using regmap Matthias Brugger
2015-05-28 18:41 ` [PATCH 3/3] clk: mediatek: Use regmap clk-mux for mt8135 Matthias Brugger
2015-05-29  6:35 ` [PATCH 0/3] clk: Add regmap support for clk mulitplexer Sascha Hauer

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).