]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/lemote/lm2e/pci.c
Merge git://git.infradead.org/mtd-2.6
[linux-2.6-omap-h63xx.git] / arch / mips / lemote / lm2e / pci.c
index 1ade1cef389966d9035103ea16edaf1a1feb4bdd..8be03a8e1ad49e50846c133763667d1bc96d58b3 100644 (file)
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <asm/mips-boards/bonito64.h>
+#include <asm/mach-lemote/pci.h>
 
 extern struct pci_ops bonito64_pci_ops;
 
 static struct resource loongson2e_pci_mem_resource = {
        .name   = "LOONGSON2E PCI MEM",
-       .start  = 0x14000000UL,
-       .end    = 0x1fffffffUL,
+       .start  = LOONGSON2E_PCI_MEM_START,
+       .end    = LOONGSON2E_PCI_MEM_END,
        .flags  = IORESOURCE_MEM,
 };
 
 static struct resource loongson2e_pci_io_resource = {
        .name   = "LOONGSON2E PCI IO MEM",
-       .start  = 0x00004000UL,
+       .start  = LOONGSON2E_PCI_IO_START,
        .end    = IO_SPACE_LIMIT,
        .flags  = IORESOURCE_IO,
 };
@@ -81,10 +82,13 @@ static void __init ict_pcimap(void)
 
 static int __init pcibios_init(void)
 {
-       extern int pci_probe_only;
-       pci_probe_only = 0;
-
        ict_pcimap();
+
+       loongson2e_pci_controller.io_map_base =
+           (unsigned long) ioremap(LOONGSON2E_IO_PORT_BASE,
+                                   loongson2e_pci_io_resource.end -
+                                   loongson2e_pci_io_resource.start + 1);
+
        register_pci_controller(&loongson2e_pci_controller);
 
        return 0;