summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-06-12 18:00:43 +0100
committerPeter Maydell <peter.maydell@linaro.org>2014-06-23 16:20:42 +0100
commit2d08dea103a87dcf978a99287d78ec6fa8fa5a4c (patch)
tree3398706b5fcf7190f74a36fa3de549cde0fbba98 /hw
parentf1323504a91733f7c19754978c9c3655d92f4a42 (diff)
hw/arm/ranchu: Add goldfish events device
Add the goldfish events device to the ranchu board. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/arm/ranchu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/arm/ranchu.c b/hw/arm/ranchu.c
index 73f4d13e9..f9696a3be 100644
--- a/hw/arm/ranchu.c
+++ b/hw/arm/ranchu.c
@@ -62,6 +62,7 @@ enum {
RANCHU_GF_FB,
RANCHU_GF_BATTERY,
RANCHU_GF_AUDIO,
+ RANCHU_GF_EVDEV,
RANCHU_MMIO,
};
@@ -104,6 +105,7 @@ static const MemMapEntry memmap[] = {
[RANCHU_GF_FB] = { 0x9010000, 0x100 },
[RANCHU_GF_BATTERY] = { 0x9020000, 0x1000 },
[RANCHU_GF_AUDIO] = { 0x9030000, 0x100 },
+ [RANCHU_GF_EVDEV] = { 0x9040000, 0x1000 },
[RANCHU_MMIO] = { 0xa000000, 0x200 },
/* ...repeating for a total of NUM_VIRTIO_TRANSPORTS, each of that size */
/* 0x10000000 .. 0x40000000 reserved for PCI */
@@ -115,6 +117,7 @@ static const int irqmap[] = {
[RANCHU_GF_FB] = 2,
[RANCHU_GF_BATTERY] = 3,
[RANCHU_GF_AUDIO] = 4,
+ [RANCHU_GF_EVDEV] = 5,
[RANCHU_MMIO] = 16, /* ...to 16 + NUM_VIRTIO_TRANSPORTS - 1 */
};
@@ -453,6 +456,8 @@ static void ranchu_init(QEMUMachineInitArgs *args)
create_simple_device(vbi, pic, RANCHU_GF_AUDIO, "goldfish_audio",
"generic,goldfish-audio", 1, 0, 0);
#endif
+ create_simple_device(vbi, pic, RANCHU_GF_EVDEV, "goldfish-events",
+ "generic,goldfish-events-keypad", 1, 0, 0);
/* Create mmio transports, so the user can create virtio backends
* (which will be automatically plugged in to the transports). If