summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/arizona/pdata.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-24 23:05:58 +0000
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-08 15:20:58 +0200
commit3092f8050eccce8463afe771f0910634a433e24b (patch)
tree5b178d5527cffdf65bd2d7d045b8b3d4da6d7855 /include/linux/mfd/arizona/pdata.h
parentf8a0941f1bbdbaa68441142675986501b48da8f5 (diff)
downloadlinux-3092f8050eccce8463afe771f0910634a433e24b.tar.bz2
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/pdata.h')
-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 {
/** Haptic actuator type */
unsigned int hap_act;
+
+ /** GPIO for primary IRQ (used for edge triggered emulation) */
+ int irq_gpio;
};
#endif