summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/gpio-dwapb.h
diff options
context:
space:
mode:
authorPhil Edworthy <phil.edworthy@renesas.com>2018-04-26 17:19:47 +0100
committerLinus Walleij <linus.walleij@linaro.org>2018-05-16 14:35:24 +0200
commite6ca26abd37606ba4864f20c85d3fe4a2173b93f (patch)
tree18cab27e25f3380c1f300904034a6823dabd8ec9 /include/linux/platform_data/gpio-dwapb.h
parent413f9e991896a98c03da6b3c43dc7791a4d28d9a (diff)
gpio: dwapb: Add support for 1 interrupt per port A GPIO
The DesignWare GPIO IP can be configured for either 1 interrupt or 1 per GPIO in port A, but the driver currently only supports 1 interrupt. See the DesignWare DW_apb_gpio Databook description of the 'GPIO_INTR_IO' parameter. This change allows the driver to work with up to 32 interrupts, it will get as many interrupts as specified in the DT 'interrupts' property. It doesn't do anything clever with the different interrupts, it just calls the same handler used for single interrupt hardware. ACPI companion code provided by Hoan Tran <hotran@apm.com>. This was tested on X-Gene by Hoan. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Lee Jones <lee.jones@linaro.org> Acked-by: Hoan Tran <hotran@apm.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/platform_data/gpio-dwapb.h')
-rw-r--r--include/linux/platform_data/gpio-dwapb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/platform_data/gpio-dwapb.h b/include/linux/platform_data/gpio-dwapb.h
index 2dc7f4a8ab09..5a52d69c13f3 100644
--- a/include/linux/platform_data/gpio-dwapb.h
+++ b/include/linux/platform_data/gpio-dwapb.h
@@ -19,7 +19,8 @@ struct dwapb_port_property {
unsigned int idx;
unsigned int ngpio;
unsigned int gpio_base;
- unsigned int irq;
+ unsigned int irq[32];
+ bool has_irq;
bool irq_shared;
};