aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/arizona
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-24 19:05:58 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-08 09:20:58 -0400
commit3092f8050eccce8463afe771f0910634a433e24b (patch)
tree5b178d5527cffdf65bd2d7d045b8b3d4da6d7855 /include/linux/mfd/arizona
parentf8a0941f1bbdbaa68441142675986501b48da8f5 (diff)
mfd: arizona: Allow GPIO to be specified for IRQ line
If a GPIO is specified for the chip IRQ line then request it. This improves support for systems that do not put pins into input mode when used as interrupts. Also use this GPIO when the primary IRQ is in edge triggered mode to detect if we have handled pending interrupts in order to improve robustness. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.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 84fefede3a23..8755dd05ab78 100644
--- a/include/linux/mfd/arizona/pdata.h
+++ b/include/linux/mfd/arizona/pdata.h
@@ -163,6 +163,9 @@ struct arizona_pdata {
163 163
164 /** Haptic actuator type */ 164 /** Haptic actuator type */
165 unsigned int hap_act; 165 unsigned int hap_act;
166
167 /** GPIO for primary IRQ (used for edge triggered emulation) */
168 int irq_gpio;
166}; 169};
167 170
168#endif 171#endif