aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/arizona
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-10 18:55:51 -0500
committerChanwoo Choi <cw00.choi@samsung.com>2013-01-15 01:42:18 -0500
commitdd235eea4ed75b1599dd9a53bb618fe5befeb731 (patch)
treefa179be072d4865c3590599c14f02ee761c8326e /include/linux/mfd/arizona
parent9b1270c71fb5f4783c72cae7e458b2cf8c657f84 (diff)
extcon: arizona: Support HPDET based accessory identification
The accessory detection functionality in Arizona devices is flexible and supports several system designs in addition to the default one implemented by the existing driver. One such design uses the HPDET feature to determine what kind of accessory is present by comparing measurements taken with the two headphone grounds available on the device, implement that if selected by platform data. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Myungjoo Ham <myungjoo.ham@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 0fc26a480be3..7c0878778357 100644
--- a/include/linux/mfd/arizona/pdata.h
+++ b/include/linux/mfd/arizona/pdata.h
@@ -99,6 +99,9 @@ struct arizona_pdata {
99 /** GPIO5 is used for jack detection */ 99 /** GPIO5 is used for jack detection */
100 bool jd_gpio5; 100 bool jd_gpio5;
101 101
102 /** Use the headphone detect circuit to identify the accessory */
103 bool hpdet_acc_id;
104
102 /** GPIO for mic detection polarity */ 105 /** GPIO for mic detection polarity */
103 int micd_pol_gpio; 106 int micd_pol_gpio;
104 107