From d27d06f21fa87ec08d05d7ab6e9b096d7605b803 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 15 Nov 2009 17:42:17 +0000 Subject: 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 --- hw/unin_pci.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hw/unin_pci.c') 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; -- cgit v1.2.1