aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-30 15:32:05 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-01 09:21:55 -0500
commitaf6b6fe41c4bc9e7933d66bbbf5106e0e7e6e484 (patch)
treea77dfb3341cffbf084986bdf53bd1503e2389ebc /include/linux/mfd
parent157a75e664f8c811c660de1d1b9abb16a1f72579 (diff)
ASoC: Implement support for WM1811A jack detection
The WM1811A features an advanced low power accessory detection subsystem which allows the device to be maintained in a very low power state while the system is idle without sacrificing any accessory detection features. Implement software support for this, automatically managing the power configuration of the device depending on the detected accessory. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/wm8994/registers.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/mfd/wm8994/registers.h b/include/linux/mfd/wm8994/registers.h
index 83a9caec0e43..ebfc92fdcd77 100644
--- a/include/linux/mfd/wm8994/registers.h
+++ b/include/linux/mfd/wm8994/registers.h
@@ -242,6 +242,7 @@
242#define WM8994_GPIO_4 0x703 242#define WM8994_GPIO_4 0x703
243#define WM8994_GPIO_5 0x704 243#define WM8994_GPIO_5 0x704
244#define WM8994_GPIO_6 0x705 244#define WM8994_GPIO_6 0x705
245#define WM1811_JACKDET_CTRL 0x705
245#define WM8994_GPIO_7 0x706 246#define WM8994_GPIO_7 0x706
246#define WM8994_GPIO_8 0x707 247#define WM8994_GPIO_8 0x707
247#define WM8994_GPIO_9 0x708 248#define WM8994_GPIO_9 0x708
@@ -1852,6 +1853,9 @@
1852/* 1853/*
1853 * R57 (0x39) - AntiPOP (2) 1854 * R57 (0x39) - AntiPOP (2)
1854 */ 1855 */
1856#define WM1811_JACKDET_MODE_MASK 0x0180 /* JACKDET_MODE - [8:7] */
1857#define WM1811_JACKDET_MODE_SHIFT 7 /* JACKDET_MODE - [8:7] */
1858#define WM1811_JACKDET_MODE_WIDTH 2 /* JACKDET_MODE - [8:7] */
1855#define WM8994_MICB2_DISCH 0x0100 /* MICB2_DISCH */ 1859#define WM8994_MICB2_DISCH 0x0100 /* MICB2_DISCH */
1856#define WM8994_MICB2_DISCH_MASK 0x0100 /* MICB2_DISCH */ 1860#define WM8994_MICB2_DISCH_MASK 0x0100 /* MICB2_DISCH */
1857#define WM8994_MICB2_DISCH_SHIFT 8 /* MICB2_DISCH */ 1861#define WM8994_MICB2_DISCH_SHIFT 8 /* MICB2_DISCH */
@@ -4187,6 +4191,18 @@
4187#define WM8994_STL_SEL_WIDTH 1 /* STL_SEL */ 4191#define WM8994_STL_SEL_WIDTH 1 /* STL_SEL */
4188 4192
4189/* 4193/*
4194 * R1797 (0x705) - JACKDET Ctrl
4195 */
4196#define WM1811_JACKDET_DB 0x0100 /* JACKDET_DB */
4197#define WM1811_JACKDET_DB_MASK 0x0100 /* JACKDET_DB */
4198#define WM1811_JACKDET_DB_SHIFT 8 /* JACKDET_DB */
4199#define WM1811_JACKDET_DB_WIDTH 1 /* JACKDET_DB */
4200#define WM1811_JACKDET_LVL 0x0040 /* JACKDET_LVL */
4201#define WM1811_JACKDET_LVL_MASK 0x0040 /* JACKDET_LVL */
4202#define WM1811_JACKDET_LVL_SHIFT 6 /* JACKDET_LVL */
4203#define WM1811_JACKDET_LVL_WIDTH 1 /* JACKDET_LVL */
4204
4205/*
4190 * R1824 (0x720) - Pull Control (1) 4206 * R1824 (0x720) - Pull Control (1)
4191 */ 4207 */
4192#define WM8994_DMICDAT2_PU 0x0800 /* DMICDAT2_PU */ 4208#define WM8994_DMICDAT2_PU 0x0800 /* DMICDAT2_PU */