clk: sunxi-ng: Add mux clock support
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 29 Jun 2016 19:05:26 +0000 (21:05 +0200)
committerMichael Turquette <mturquette@baylibre.com>
Sat, 9 Jul 2016 01:04:42 +0000 (18:04 -0700)
commit2a65ed42dca8721fb7aa397cc3c7321fbb3b7dba
tree16865d1a874d3a7af878de85877fe638bdd85735
parent1a7e7c388df10b2636e4ba18cc29ef740fbea6cc
clk: sunxi-ng: Add mux clock support

Some clocks in the Allwinner SoCs clocks unit are just muxes.

However, those muxes might also be found in some other complicated clocks
that would benefit from the code in there to deal with "advanced" features,
like pre-dividers.

Introduce a set of helpers to reduce the code duplication in such cases.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20160629190535.11855-6-maxime.ripard@free-electrons.com
drivers/clk/sunxi-ng/Kconfig
drivers/clk/sunxi-ng/Makefile
drivers/clk/sunxi-ng/ccu_mux.c [new file with mode: 0644]
drivers/clk/sunxi-ng/ccu_mux.h [new file with mode: 0644]