aboutsummaryrefslogtreecommitdiff
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-16 10:17:28 +0100
commitf4edc075d0f8a0314c9554207b0f4505ffe87bf4 (patch)
tree200f7ed134959b744250fe548897ca78a9b9ff06
parentb12ab13c54dbdb689788a3163413ca0491e597c0 (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>
-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 34e1dc9aa4..d4488764fe 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 */
};
@@ -448,6 +451,8 @@ static void ranchu_init(QEMUMachineInitArgs *args)
"generic,goldfish-battery", 1, 0, 0);
create_simple_device(vbi, pic, RANCHU_GF_AUDIO, "goldfish_audio",
"generic,goldfish-audio", 1, 0, 0);
+ 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