aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/arizona/pdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mfd/arizona/pdata.h')
-rw-r--r--include/linux/mfd/arizona/pdata.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/mfd/arizona/pdata.h b/include/linux/mfd/arizona/pdata.h
index 455c51d22d6b..a0f940987a3e 100644
--- a/include/linux/mfd/arizona/pdata.h
+++ b/include/linux/mfd/arizona/pdata.h
@@ -86,6 +86,11 @@ struct arizona_micd_config {
86 bool gpio; 86 bool gpio;
87}; 87};
88 88
89struct arizona_micd_range {
90 int max; /** Ohms */
91 int key; /** Key to report to input layer */
92};
93
89struct arizona_pdata { 94struct arizona_pdata {
90 int reset; /** GPIO controlling /RESET, if any */ 95 int reset; /** GPIO controlling /RESET, if any */
91 int ldoena; /** GPIO controlling LODENA, if any */ 96 int ldoena; /** GPIO controlling LODENA, if any */
@@ -117,12 +122,21 @@ struct arizona_pdata {
117 /** GPIO5 is used for jack detection */ 122 /** GPIO5 is used for jack detection */
118 bool jd_gpio5; 123 bool jd_gpio5;
119 124
125 /** Internal pull on GPIO5 is disabled when used for jack detection */
126 bool jd_gpio5_nopull;
127
120 /** Use the headphone detect circuit to identify the accessory */ 128 /** Use the headphone detect circuit to identify the accessory */
121 bool hpdet_acc_id; 129 bool hpdet_acc_id;
122 130
131 /** Check for line output with HPDET method */
132 bool hpdet_acc_id_line;
133
123 /** GPIO used for mic isolation with HPDET */ 134 /** GPIO used for mic isolation with HPDET */
124 int hpdet_id_gpio; 135 int hpdet_id_gpio;
125 136
137 /** Extra debounce timeout used during initial mic detection (ms) */
138 int micd_detect_debounce;
139
126 /** GPIO for mic detection polarity */ 140 /** GPIO for mic detection polarity */
127 int micd_pol_gpio; 141 int micd_pol_gpio;
128 142
@@ -135,9 +149,16 @@ struct arizona_pdata {
135 /** Mic detect debounce level */ 149 /** Mic detect debounce level */
136 int micd_dbtime; 150 int micd_dbtime;
137 151
152 /** Mic detect timeout (ms) */
153 int micd_timeout;
154
138 /** Force MICBIAS on for mic detect */ 155 /** Force MICBIAS on for mic detect */
139 bool micd_force_micbias; 156 bool micd_force_micbias;
140 157
158 /** Mic detect level parameters */
159 const struct arizona_micd_range *micd_ranges;
160 int num_micd_ranges;
161
141 /** Headset polarity configurations */ 162 /** Headset polarity configurations */
142 struct arizona_micd_config *micd_configs; 163 struct arizona_micd_config *micd_configs;
143 int num_micd_configs; 164 int num_micd_configs;