aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-11-15 17:42:17 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-11-15 17:42:17 +0000
commitd27d06f21fa87ec08d05d7ab6e9b096d7605b803 (patch)
tree04163179dbf370debf801418d14bda0faf5ac540
parent603987488c61ca02ee99890d07cdaecdb118a659 (diff)
PPC64: map Uni-North AGP bus aka fix Linux boot
Uni-North AGP device mapping was accidentally dropped in 2e29bd04786003561303dcad940b38afe790fb9b. Map the device. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--hw/unin_pci.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/unin_pci.c b/hw/unin_pci.c
index e1cd2a375b..fe13e7b3eb 100644
--- a/hw/unin_pci.c
+++ b/hw/unin_pci.c
@@ -171,11 +171,21 @@ PCIBus *pci_pmac_init(qemu_irq *pic)
/* Uninorth AGP bus */
pci_create_simple(d->host_state.bus, 11 << 3, "Uni-north AGP");
+ dev = qdev_create(NULL, "Uni-north AGP");
+ qdev_init_nofail(dev);
+ s = sysbus_from_qdev(dev);
+ sysbus_mmio_map(s, 0, 0xf0800000);
+ sysbus_mmio_map(s, 1, 0xf0c00000);
/* Uninorth internal bus */
#if 0
/* XXX: not needed for now */
pci_create_simple(d->host_state.bus, 14 << 3, "Uni-north internal");
+ dev = qdev_create(NULL, "Uni-north internal");
+ qdev_init_nofail(dev);
+ s = sysbus_from_qdev(dev);
+ sysbus_mmio_map(s, 0, 0xf4800000);
+ sysbus_mmio_map(s, 1, 0xf4c00000);
#endif
return d->host_state.bus;