mfd: arizona: Add gating of external MCLKn clocks
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 2 Sep 2016 15:52:46 +0000 (16:52 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 4 Oct 2016 14:46:07 +0000 (15:46 +0100)
commitcdd8da8cc66b3d205120560649e530978ccbc567
treed6a40397419b95800af04c7d768d02f2c1a6fc81
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
mfd: arizona: Add gating of external MCLKn clocks

This patch adds requesting of the clocks supplied on MCLK1, MCLK2 pins,
gating of the 32k clock is added to the arizona_clk32k_enable(),
arizona_clk32k_disable() helpers.

It's a temporary change until the CODEC's clock controller gets exposed
through the clk API and is helpful for board configurations where the
MCLK clocks are not provided by always on oscillators.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c
include/linux/mfd/arizona/core.h