i.MX: add support for lower and upper interrupt in GPIO.
commitf1f7e4bf76ad8e88a55f3ae8fd01629669d4317b
authorJean-Christophe Dubois <jcd@tribudubois.net>
Thu, 17 Dec 2015 13:37:13 +0000 (17 13:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Dec 2015 13:37:13 +0000 (17 13:37 +0000)
treeba390475290c2633f1b8ecdfeadf381ac5cba2dc
parent98557acf92977b6ecf98b4f7183a518cc47d21cc
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>
hw/gpio/imx_gpio.c
include/hw/gpio/imx_gpio.h