]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/qemu-malta/qemu-malta.c
MIPS: qemu-malta: add PCI support
[karo-tx-uboot.git] / board / qemu-malta / qemu-malta.c
index 449da9c85919bf50e5ca15f8ebac24d457f632a9..e3a733f42f486acdcff1c6a97aef4e7bb348b887 100644 (file)
@@ -8,8 +8,10 @@
 
 #include <common.h>
 
+#include <asm/addrspace.h>
 #include <asm/io.h>
 #include <asm/malta.h>
+#include <pci_gt64120.h>
 
 phys_size_t initdram(int board_type)
 {
@@ -29,3 +31,13 @@ void _machine_restart(void)
        reset_base = (void __iomem *)CKSEG1ADDR(MALTA_RESET_BASE);
        __raw_writel(GORESET, reset_base);
 }
+
+void pci_init_board(void)
+{
+       set_io_port_base(CKSEG1ADDR(MALTA_IO_PORT_BASE));
+
+       gt64120_pci_init((void *)CKSEG1ADDR(MALTA_GT_BASE),
+                        0x00000000, 0x00000000, CONFIG_SYS_MEM_SIZE,
+                        0x10000000, 0x10000000, 128 * 1024 * 1024,
+                        0x00000000, 0x00000000, 0x20000);
+}