diff options
author | Jean-Christophe Dubois <jcd@tribudubois.net> | 2015-12-17 13:37:13 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:28:19 -0600 |
commit | cca41ed5c59dd06e7bf86c040a2defb1f6f0fb81 (patch) | |
tree | 5c622429a6f7b0573c845fa784f74647c0a782f8 /include/hw/gpio/imx_gpio.h | |
parent | 982aa801dbd0e0dd687730e8758bb62da6890483 (diff) | |
download | hqemu-cca41ed5c59dd06e7bf86c040a2defb1f6f0fb81.zip hqemu-cca41ed5c59dd06e7bf86c040a2defb1f6f0fb81.tar.gz |
i.MX: add support for lower and upper interrupt in GPIO.
The i.MX6 GPIO device supports 2 interrupts instead of one.
* 1 for the lower 16 GPIOs.
* 1 for the upper 16 GPIOs.
i.MX31 and i.MX25 only support 1 interrupt for the 32 GPIOs.
So we add a property to turn the behavior on when required.
Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Message-id: 1447497668-1603-1-git-send-email-jcd@tribudubois.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/gpio/imx_gpio.h')
-rw-r--r-- | include/hw/gpio/imx_gpio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/gpio/imx_gpio.h b/include/hw/gpio/imx_gpio.h index 517b261..b15a09f 100644 --- a/include/hw/gpio/imx_gpio.h +++ b/include/hw/gpio/imx_gpio.h @@ -54,8 +54,9 @@ typedef struct IMXGPIOState { uint32_t isr; bool has_edge_sel; uint32_t edge_sel; + bool has_upper_pin_irq; - qemu_irq irq; + qemu_irq irq[2]; qemu_irq output[IMX_GPIO_PIN_COUNT]; } IMXGPIOState; |