diff options
| author | Phil Edworthy <[email protected]> | 2018-04-26 16:19:47 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2018-05-16 12:35:24 +0000 |
| commit | e6ca26abd37606ba4864f20c85d3fe4a2173b93f (patch) | |
| tree | 18cab27e25f3380c1f300904034a6823dabd8ec9 /drivers/mfd/intel_quark_i2c_gpio.c | |
| parent | gpio: make several const arrays static, shrinks object size (diff) | |
| download | kernel-e6ca26abd37606ba4864f20c85d3fe4a2173b93f.tar.gz kernel-e6ca26abd37606ba4864f20c85d3fe4a2173b93f.zip | |
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 <[email protected]>. This was tested
on X-Gene by Hoan.
Signed-off-by: Phil Edworthy <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Acked-by: Lee Jones <[email protected]>
Acked-by: Hoan Tran <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/mfd/intel_quark_i2c_gpio.c')
| -rw-r--r-- | drivers/mfd/intel_quark_i2c_gpio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/intel_quark_i2c_gpio.c b/drivers/mfd/intel_quark_i2c_gpio.c index 90e35dec8648..5bddb84cfc1f 100644 --- a/drivers/mfd/intel_quark_i2c_gpio.c +++ b/drivers/mfd/intel_quark_i2c_gpio.c @@ -233,7 +233,8 @@ static int intel_quark_gpio_setup(struct pci_dev *pdev, struct mfd_cell *cell) pdata->properties->idx = 0; pdata->properties->ngpio = INTEL_QUARK_MFD_NGPIO; pdata->properties->gpio_base = INTEL_QUARK_MFD_GPIO_BASE; - pdata->properties->irq = pdev->irq; + pdata->properties->irq[0] = pdev->irq; + pdata->properties->has_irq = true; pdata->properties->irq_shared = true; cell->platform_data = pdata; |
