hw/irq: Add qemu_irq_split() so one GPIO output can feed two inputs
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Feb 2011 20:57:52 +0000 (20:57 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 6 Mar 2011 18:01:31 +0000 (19:01 +0100)
commit192aeec6950c79dc13df1ce57865e61ce6366493
treef0015b4cc4481c063ba17eba30e035f83bf619c4
parent31b4bf28b5e57cb2e5969eb755d3dedf82628642
hw/irq: Add qemu_irq_split() so one GPIO output can feed two inputs

Add a qemu_irq_split() function which allows a board to wire a single
GPIO output up to two GPIO inputs. This is needed for realview boards,
where the MMC card status is visible both in a system register and
via a PL061 GPIO module.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/irq.c
hw/irq.h