[PATCH 0/3] arm: kirkwood: model cpu clock mux and update cpufreq driver

From: Mike Turquette
Date: Mon Sep 01 2014 - 14:48:01 EST


While reviewing Tomeu's "Per-user clock constraints" series I saw that
the Kirkwood cpufreq driver needed to use a new, public clk_is_enabled()
which I hoped not to merge [0].

This led to some investigation as to why this was needed and with
Andrew's help I came to realize that the powersave_clk on the kirkwood
platform acts more like a clock signal multiplexer than a gate. This mux
is unique to Kirkwood; none of the other mvebu platforms have it.

This series updates the kirkwood clock driver to model the powersave_clk
as a mux instead of a gate, and it updates and slightly simplifies the
cpufreq driver to use this clock as a mux.

Rafael & Viresh: I'd prefer to merge the cpufreq driver patch through
the clock tree since Tomeu's changes to the clock core depend on it.

[0] http://lkml.kernel.org/r/CAPtuhThyUPrY2AqVEsyRQqR-8hsj_GAe1W0u_XXonP-C2o_Xew@xxxxxxxxxxxxxx

Mike Turquette (3):
clk: mvebu: share locks between gate clocks
clk: mvebu: powersave clock is a multiplexer
cpufreq: kirkwood: use the powersave multiplexer

drivers/clk/mvebu/common.c | 9 ++--
drivers/clk/mvebu/common.h | 2 +
drivers/clk/mvebu/kirkwood.c | 102 ++++++++++++++++++++++++++++++++++++-
drivers/cpufreq/kirkwood-cpufreq.c | 14 ++---
4 files changed, 113 insertions(+), 14 deletions(-)

--
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/