Skip to content

reorganize clock initialization and add PCM clock

kernel at martin.sperl.org linux-arm-kernel linux-clk linux-devicetree 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3clk: bcm2835: remove use of BCM2835_CLOCK_COUNT in driverdrivers/clk/bcm/clk-bcm2835.c include/dt-bindings/clock/bcm2835.h+94 -750 replies
2/3clk: bcm2835: reorganize bcm2835_clock_array assignmentdrivers/clk/bcm/clk-bcm2835.c+393 -4590 replies
3/3clk: bcm2835: enable management of PCM clockdrivers/clk/bcm/clk-bcm2835.c include/dt-bindings/clock/bcm2835.h+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] reorganize clock initialization and add PCM clock

From: Martin Sperl <[email protected]>

As changing entries in the dt-bindings header files is frowned upon and as we would need to change BCM2835_CLOCK_COUNT for every new clock added, this patchset moves away from the use of BCM2835_CLOCK_COUNT and removes it from the dt-bindings alltogether.

Instead - as recommended by Michael Turquette, Geert Uytterhoeven and Remi Pommarel - patch 1 introduces a new initialization process in probe that simply uses ARRAY_SIZE on a (sparse) array.

With patch 2 the initialization of the array is simplified and better grouped together.

Patch 3 introduces the pcm clock of the bcm2835 soc and already shows the simplification at work - the main reason for this patchset.

Martin Sperl (3):
clk: bcm2835: remove use of BCM2835_CLOCK_COUNT in driver
clk: bcm2835: reorganize bcm2835_clock_array assignment
clk: bcm2835: enable management of PCM clock

 drivers/clk/bcm/clk-bcm2835.c       |  918 +++++++++++++++++------------------
 include/dt-bindings/clock/bcm2835.h |    3 +-
 2 files changed, 441 insertions(+), 480 deletions(-)

--
1.7.10.4