diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2016-09-02 16:52:46 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-10-04 15:46:07 +0100 |
commit | cdd8da8cc66b3d205120560649e530978ccbc567 (patch) | |
tree | d6a40397419b95800af04c7d768d02f2c1a6fc81 /include/linux | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) | |
download | op-kernel-dev-cdd8da8cc66b3d205120560649e530978ccbc567.zip op-kernel-dev-cdd8da8cc66b3d205120560649e530978ccbc567.tar.gz |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/arizona/core.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mfd/arizona/core.h b/include/linux/mfd/arizona/core.h index 58ab4c0..b9909bb 100644 --- a/include/linux/mfd/arizona/core.h +++ b/include/linux/mfd/arizona/core.h @@ -13,6 +13,7 @@ #ifndef _WM_ARIZONA_CORE_H #define _WM_ARIZONA_CORE_H +#include <linux/clk.h> #include <linux/interrupt.h> #include <linux/notifier.h> #include <linux/regmap.h> @@ -21,6 +22,12 @@ #define ARIZONA_MAX_CORE_SUPPLIES 2 +enum { + ARIZONA_MCLK1, + ARIZONA_MCLK2, + ARIZONA_NUM_MCLK +}; + enum arizona_type { WM5102 = 1, WM5110 = 2, @@ -139,6 +146,8 @@ struct arizona { struct mutex clk_lock; int clk32k_ref; + struct clk *mclk[ARIZONA_NUM_MCLK]; + bool ctrlif_error; struct snd_soc_dapm_context *dapm; |