clk: sunxi-ng: Add gate clock support
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 29 Jun 2016 19:05:25 +0000 (21:05 +0200)
committerMichael Turquette <mturquette@baylibre.com>
Sat, 9 Jul 2016 01:04:38 +0000 (18:04 -0700)
commit1a7e7c388df10b2636e4ba18cc29ef740fbea6cc
tree2a8cb1c6544e3dd1e3d8f23992c3818b82629ddc
parent89a3dfb787072438f72de95ff3fe7b58213e08c1
clk: sunxi-ng: Add gate clock support

Some clocks in the Allwinner SoCs clocks unit are just simple gates. Add
support for those clocks.

Since it's a feature that can also be found in more complex clocks, provide
a bunch of helpers that can be reused later on.

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-5-maxime.ripard@free-electrons.com
drivers/clk/sunxi-ng/Kconfig
drivers/clk/sunxi-ng/Makefile
drivers/clk/sunxi-ng/ccu_gate.c [new file with mode: 0644]
drivers/clk/sunxi-ng/ccu_gate.h [new file with mode: 0644]