summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorSimon Horman <horms+renesas@verge.net.au>2013-05-24 09:47:24 (GMT)
committerSimon Horman <horms+renesas@verge.net.au>2013-06-04 11:28:36 (GMT)
commit7e1092b5a264c484001b0cdd1f49bea7884e3366 (patch)
treeb16dcf9106df40c5a021dde86eea17b862cb9dfe /include/linux/platform_data
parent36cb0066ffc55fd326c8a21ffe80aaa5bd16021b (diff)
downloadlinux-fsl-qoriq-7e1092b5a264c484001b0cdd1f49bea7884e3366.tar.xz
gpio-rcar: Add support for IRQ_TYPE_EDGE_BOTH
As hardware support for this feature is not universal for all SoCs a flag, has_both_edge_trigger, has been added to the platform data of the driver to allow this feature to be enabled. The motivation for this is to allow use of the gpio-keys driver on the lager board which is based on the r8a7790 SoC. The V2 of this patch has been fully exercised using that driver on that board. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/gpio-rcar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/gpio-rcar.h b/include/linux/platform_data/gpio-rcar.h
index aba7079..6c0027a 100644
--- a/include/linux/platform_data/gpio-rcar.h
+++ b/include/linux/platform_data/gpio-rcar.h
@@ -21,6 +21,7 @@ struct gpio_rcar_config {
unsigned int irq_base;
unsigned int number_of_pins;
const char *pctl_name;
+ unsigned has_both_edge_trigger:1;
};
#endif /* __GPIO_RCAR_H__ */