extcon: arizona: Add support for select accessory detect mode when headphone detection
authorInha Song <ideal.song@samsung.com>
Mon, 4 May 2015 04:42:13 +0000 (13:42 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 19 May 2015 07:39:05 +0000 (16:39 +0900)
commit9e86b2ad4c11fd52ee8133abce7a29e0b32d29a7
tree9b51091594489f7c44d686932111c121a7ffd3f8
parent2b51f9c2f1bd43907e1dc75912de6f06c6f59860
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>
drivers/extcon/extcon-arizona.c
include/dt-bindings/mfd/arizona.h
include/linux/mfd/arizona/pdata.h