linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] ARM: sunxi: Switch to clock indices
@ 2015-07-31 17:46 Maxime Ripard
  2015-07-31 17:46 ` [PATCH v2 1/7] ARM: sun4i: Add " Maxime Ripard
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Maxime Ripard @ 2015-07-31 17:46 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

We currently have in our clock driver a logic very similar to the one
that clock-indices is supposed to cover.

Using this property, we can create a new driver generic for all gates
that will get the valid indices directly from the device tree, instead
of storing that in the driver itself.

While we're at it, we also move to using CLK_OF_DECLARE for that new
driver, which should ease the orphan clocks breakage we saw.

Let me know what you think,
Maxime

Changes from v1:
  - Remove unused headers in the driver
  - Fix the wrong commit log for the A80

Maxime Ripard (7):
  ARM: sun4i: Add clock indices
  ARM: sun5i: Add clock indices
  ARM: sun6i: Add clock indices
  ARM: sun7i: Add clock indices
  ARM: sun8i: Add clock indices
  ARM: sun9i: Wrap the clock-indices
  clk: sunxi: Add a simple gates driver

 arch/arm/boot/dts/sun4i-a10.dtsi     |  69 ++++++++++----
 arch/arm/boot/dts/sun5i-a10s.dtsi    |  23 ++++-
 arch/arm/boot/dts/sun5i-a13.dtsi     |  18 +++-
 arch/arm/boot/dts/sun5i.dtsi         |   1 +
 arch/arm/boot/dts/sun6i-a31.dtsi     |  24 +++++
 arch/arm/boot/dts/sun7i-a20.dtsi     |  23 +++++
 arch/arm/boot/dts/sun8i-a23-a33.dtsi |  15 +++
 arch/arm/boot/dts/sun9i-a80.dtsi     |  32 +++++--
 drivers/clk/sunxi/Makefile           |   1 +
 drivers/clk/sunxi/clk-simple-gates.c | 157 +++++++++++++++++++++++++++++++
 drivers/clk/sunxi/clk-sunxi.c        | 177 -----------------------------------
 11 files changed, 333 insertions(+), 207 deletions(-)
 create mode 100644 drivers/clk/sunxi/clk-simple-gates.c

-- 
2.4.6

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

end of thread, other threads:[~2015-08-19  9:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-31 17:46 [PATCH v2 0/7] ARM: sunxi: Switch to clock indices Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 1/7] ARM: sun4i: Add " Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 2/7] ARM: sun5i: " Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 3/7] ARM: sun6i: " Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 4/7] ARM: sun7i: " Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 5/7] ARM: sun8i: " Maxime Ripard
2015-08-07 16:21   ` Chen-Yu Tsai
2015-08-11  4:49     ` Chen-Yu Tsai
2015-08-11 17:50       ` Michael Turquette
2015-08-12  3:17         ` Chen-Yu Tsai
2015-08-19  9:15     ` Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 6/7] ARM: sun9i: Wrap the clock-indices Maxime Ripard
2015-07-31 17:46 ` [PATCH v2 7/7] clk: sunxi: Add a simple gates driver Maxime Ripard
2015-08-11 23:19   ` Michael Turquette

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