pl061: implement input interrupt logic
commitbfb27e6042e80fca90dc250657b420a73c1c42be
authorColin Leitner <colin.leitner@googlemail.com>
Fri, 12 Sep 2014 13:06:48 +0000 (12 14:06 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Sep 2014 13:06:48 +0000 (12 14:06 +0100)
tree314d898fbef416c95e4a76bbafc6f76b27917b0a
parentc3c8d6b3ddc881fb2ebd651e320cda36b2ec079b
pl061: implement input interrupt logic

This patch adds the missing input interrupt logic to the pl061 GPIO device. To
keep the floating output pins to stay high, the old state variable had to be
split into two separate ones for input and output - which brings the vmstate
version to 3.

Edge level interrupts and I/O were tested under Linux 3.14. Level interrupt
handling hasn't been tested.

Signed-off-by: Colin Leitner <colin.leitner@googlemail.com>
Message-id: 54024FD2.9080204@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/gpio/pl061.c