diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-24 23:05:58 (GMT) |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-08 13:20:58 (GMT) |
commit | 3092f8050eccce8463afe771f0910634a433e24b (patch) | |
tree | 5b178d5527cffdf65bd2d7d045b8b3d4da6d7855 /include | |
parent | f8a0941f1bbdbaa68441142675986501b48da8f5 (diff) | |
download | linux-fsl-qoriq-3092f8050eccce8463afe771f0910634a433e24b.tar.xz |
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')
-rw-r--r-- | include/linux/mfd/arizona/pdata.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/arizona/pdata.h b/include/linux/mfd/arizona/pdata.h index 84fefed..8755dd0 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 |