aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Tisma <miroslav.tisma@imgtec.com>2015-05-08 12:29:31 +0200
committerMiroslav Tisma <miroslav.tisma@imgtec.com>2015-06-02 16:53:06 +0200
commit63782ac9f6a57a903f8496fc6c026551b01926db (patch)
tree29a638081049145bb6ad515a198f7e41223230d8
parent3a1d5bcfef75950af05ccf969f44738fadc6a60f (diff)
downloadqemu-android-63782ac9f6a57a903f8496fc6c026551b01926db.tar.gz
hw/mips: ranchu: Enable goldfish audio
This commit adds goldfish_audio node to device tree for enabling goldfih audio. Change-Id: I0084cd20a3cbc9989c5b49e06d72929f4010db74
-rw-r--r--hw/mips/mips_ranchu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/mips/mips_ranchu.c b/hw/mips/mips_ranchu.c
index a6bad1d96c..981b22c134 100644
--- a/hw/mips/mips_ranchu.c
+++ b/hw/mips/mips_ranchu.c
@@ -92,7 +92,7 @@ static DevMapEntry devmap[] = {
[RANCHU_ANDROID_PIPE] = { GOLDFISH_IO_SPACE + 0x0A000, 0x2000, 10,
"android_pipe", "android_pipe", "generic,android-pipe" },
[RANCHU_GF_AUDIO] = { GOLDFISH_IO_SPACE + 0x0C000, 0x0100, 11,
- NULL, NULL, NULL },
+ "goldfish_audio", "goldfish_audio", "generic,goldfish-audio" },
[RANCHU_MMIO] = { GOLDFISH_IO_SPACE + 0x10000, 0x0200, 16,
"virtio-mmio", "virtio_mmio", "virtio,mmio" },
/* ...repeating for a total of VIRTIO_TRANSPORTS, each of that size */
@@ -475,7 +475,7 @@ static void ranchu_init(MachineState *machine)
create_device(fdt, &devmap[RANCHU_GF_TTY], goldfish_pic, MAX_GF_TTYS, 0);
/* Other Goldfish Platform devices */
- for (i = RANCHU_ANDROID_PIPE; i >= RANCHU_GF_TIMER ; i--) {
+ for (i = RANCHU_GF_AUDIO; i >= RANCHU_GF_TIMER ; i--) {
create_device(fdt, &devmap[i], goldfish_pic, 1, 0);
}