aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2014-11-04 10:24:36 -0500
committerLee Jones <lee.jones@linaro.org>2014-11-25 11:18:55 -0500
commit47958c5ab4035bd91f05598f76a61cd9f7f2934c (patch)
treeed857863bc88aa4018dbc78b7e50b150830fc145 /include/linux/mfd
parente62cace7b602b29cc9226e64dfb2c47ddfb9558e (diff)
mfd: arizona: Document HP_CTRL_1L and HP_CTRL_1R registers
These registers are documented in the datasheet and used as part of the extcon driver. Expose them properly through regmap as the datasheet notes they should be treated as volatile do so. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/arizona/registers.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/linux/mfd/arizona/registers.h b/include/linux/mfd/arizona/registers.h
index c0b075f6bc35..d521f327b34f 100644
--- a/include/linux/mfd/arizona/registers.h
+++ b/include/linux/mfd/arizona/registers.h
@@ -125,6 +125,8 @@
125#define ARIZONA_MIC_BIAS_CTRL_1 0x218 125#define ARIZONA_MIC_BIAS_CTRL_1 0x218
126#define ARIZONA_MIC_BIAS_CTRL_2 0x219 126#define ARIZONA_MIC_BIAS_CTRL_2 0x219
127#define ARIZONA_MIC_BIAS_CTRL_3 0x21A 127#define ARIZONA_MIC_BIAS_CTRL_3 0x21A
128#define ARIZONA_HP_CTRL_1L 0x225
129#define ARIZONA_HP_CTRL_1R 0x226
128#define ARIZONA_ACCESSORY_DETECT_MODE_1 0x293 130#define ARIZONA_ACCESSORY_DETECT_MODE_1 0x293
129#define ARIZONA_HEADPHONE_DETECT_1 0x29B 131#define ARIZONA_HEADPHONE_DETECT_1 0x29B
130#define ARIZONA_HEADPHONE_DETECT_2 0x29C 132#define ARIZONA_HEADPHONE_DETECT_2 0x29C
@@ -2245,6 +2247,46 @@
2245#define ARIZONA_MICB3_ENA_WIDTH 1 /* MICB3_ENA */ 2247#define ARIZONA_MICB3_ENA_WIDTH 1 /* MICB3_ENA */
2246 2248
2247/* 2249/*
2250 * R549 (0x225) - HP Ctrl 1L
2251 */
2252#define ARIZONA_RMV_SHRT_HP1L 0x4000 /* RMV_SHRT_HP1L */
2253#define ARIZONA_RMV_SHRT_HP1L_MASK 0x4000 /* RMV_SHRT_HP1L */
2254#define ARIZONA_RMV_SHRT_HP1L_SHIFT 14 /* RMV_SHRT_HP1L */
2255#define ARIZONA_RMV_SHRT_HP1L_WIDTH 1 /* RMV_SHRT_HP1L */
2256#define ARIZONA_HP1L_FLWR 0x0004 /* HP1L_FLWR */
2257#define ARIZONA_HP1L_FLWR_MASK 0x0004 /* HP1L_FLWR */
2258#define ARIZONA_HP1L_FLWR_SHIFT 2 /* HP1L_FLWR */
2259#define ARIZONA_HP1L_FLWR_WIDTH 1 /* HP1L_FLWR */
2260#define ARIZONA_HP1L_SHRTI 0x0002 /* HP1L_SHRTI */
2261#define ARIZONA_HP1L_SHRTI_MASK 0x0002 /* HP1L_SHRTI */
2262#define ARIZONA_HP1L_SHRTI_SHIFT 1 /* HP1L_SHRTI */
2263#define ARIZONA_HP1L_SHRTI_WIDTH 1 /* HP1L_SHRTI */
2264#define ARIZONA_HP1L_SHRTO 0x0001 /* HP1L_SHRTO */
2265#define ARIZONA_HP1L_SHRTO_MASK 0x0001 /* HP1L_SHRTO */
2266#define ARIZONA_HP1L_SHRTO_SHIFT 0 /* HP1L_SHRTO */
2267#define ARIZONA_HP1L_SHRTO_WIDTH 1 /* HP1L_SHRTO */
2268
2269/*
2270 * R550 (0x226) - HP Ctrl 1R
2271 */
2272#define ARIZONA_RMV_SHRT_HP1R 0x4000 /* RMV_SHRT_HP1R */
2273#define ARIZONA_RMV_SHRT_HP1R_MASK 0x4000 /* RMV_SHRT_HP1R */
2274#define ARIZONA_RMV_SHRT_HP1R_SHIFT 14 /* RMV_SHRT_HP1R */
2275#define ARIZONA_RMV_SHRT_HP1R_WIDTH 1 /* RMV_SHRT_HP1R */
2276#define ARIZONA_HP1R_FLWR 0x0004 /* HP1R_FLWR */
2277#define ARIZONA_HP1R_FLWR_MASK 0x0004 /* HP1R_FLWR */
2278#define ARIZONA_HP1R_FLWR_SHIFT 2 /* HP1R_FLWR */
2279#define ARIZONA_HP1R_FLWR_WIDTH 1 /* HP1R_FLWR */
2280#define ARIZONA_HP1R_SHRTI 0x0002 /* HP1R_SHRTI */
2281#define ARIZONA_HP1R_SHRTI_MASK 0x0002 /* HP1R_SHRTI */
2282#define ARIZONA_HP1R_SHRTI_SHIFT 1 /* HP1R_SHRTI */
2283#define ARIZONA_HP1R_SHRTI_WIDTH 1 /* HP1R_SHRTI */
2284#define ARIZONA_HP1R_SHRTO 0x0001 /* HP1R_SHRTO */
2285#define ARIZONA_HP1R_SHRTO_MASK 0x0001 /* HP1R_SHRTO */
2286#define ARIZONA_HP1R_SHRTO_SHIFT 0 /* HP1R_SHRTO */
2287#define ARIZONA_HP1R_SHRTO_WIDTH 1 /* HP1R_SHRTO */
2288
2289/*
2248 * R659 (0x293) - Accessory Detect Mode 1 2290 * R659 (0x293) - Accessory Detect Mode 1
2249 */ 2291 */
2250#define ARIZONA_ACCDET_SRC 0x2000 /* ACCDET_SRC */ 2292#define ARIZONA_ACCDET_SRC 0x2000 /* ACCDET_SRC */