summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/arizona
diff options
context:
space:
mode:
authorInha Song <ideal.song@samsung.com>2015-05-04 13:42:13 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2015-05-19 16:39:05 +0900
commit9e86b2ad4c11fd52ee8133abce7a29e0b32d29a7 (patch)
tree9b51091594489f7c44d686932111c121a7ffd3f8 /include/linux/mfd/arizona
parent2b51f9c2f1bd43907e1dc75912de6f06c6f59860 (diff)
downloadlinux-9e86b2ad4c11fd52ee8133abce7a29e0b32d29a7.tar.gz
linux-9e86b2ad4c11fd52ee8133abce7a29e0b32d29a7.tar.xz
extcon: arizona: Add support for select accessory detect mode when headphone detection
This patch add support for select accessory detect mode to HPDETL or HPDETR. Arizona provides a headphone detection circuit on the HPDETL and HPDETR pins to measure the impedance of an external load connected to the headphone. Depending on board design, headphone detect pins can change to HPDETR or HPDETL. Signed-off-by: Inha Song <ideal.song@samsung.com> Acked-by: Lee Jones <lee@kernel.org> Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'include/linux/mfd/arizona')
-rw-r--r--include/linux/mfd/arizona/pdata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/arizona/pdata.h b/include/linux/mfd/arizona/pdata.h
index 1789cb0f4f17..aa5c48b06755 100644
--- a/include/linux/mfd/arizona/pdata.h
+++ b/include/linux/mfd/arizona/pdata.h
@@ -121,6 +121,9 @@ struct arizona_pdata {
/** GPIO used for mic isolation with HPDET */
int hpdet_id_gpio;
+ /** Channel to use for headphone detection */
+ unsigned int hpdet_channel;
+
/** Extra debounce timeout used during initial mic detection (ms) */
int micd_detect_debounce;