clk: sunxi: Add a simple gates driver
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 31 Jul 2015 17:46:22 +0000 (19:46 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 12 Aug 2015 07:59:15 +0000 (00:59 -0700)
commitee38b2698ae234c03f65ccafa1811d4dda3c316d
tree0c999c9deecd2820833ade80806e9608e9d57be3
parent06f282757acb92b5bdb208bebd38a4785fae49bd
clk: sunxi: Add a simple gates driver

The gates were handled with a common piece of framework that was
registering all gates array, that was not using the CLK_OF_DECLARE logic,
and was not using clock-indices but some private masks that were pretty
much equivalent.

Move this code in a new driver that handles all the gates array and solves
both these issues.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
[sboyd@codeaurora.org: Include clk.h for consumer API usage]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/sunxi/Makefile
drivers/clk/sunxi/clk-simple-gates.c [new file with mode: 0644]
drivers/clk/sunxi/clk-sunxi.c