clk: add gpio controlled clock multiplexer
authorSergej Sawazki <ce3a@gmx.de>
Sun, 28 Jun 2015 14:24:55 +0000 (16:24 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 7 Jul 2015 00:20:52 +0000 (17:20 -0700)
commit80eeb1f0f757c790b020d9f425bb0e824973d49c
tree6f1368c2557943187d6835bbaa7287862ef24c69
parent281cbb007612814183d79b1f72d0395303fcfb6f
clk: add gpio controlled clock multiplexer

Add a common clock driver for basic gpio controlled clock multiplexers.
This driver can be used for devices like 5V41068A or 831721I from IDT
or for discrete multiplexer circuits. The 'select' pin selects one of
two parent clocks.

Cc: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Sergej Sawazki <ce3a@gmx.de>
[sboyd@codeaurora.org: Fix error paths to free memory and do it
in the correct order]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Documentation/devicetree/bindings/clock/gpio-mux-clock.txt [new file with mode: 0644]
drivers/clk/clk-gpio-gate.c
include/linux/clk-provider.h