]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/arm/kernel/bios32.c
ARM: Add fixed PCI i/o mapping
[karo-tx-linux.git] / arch / arm / kernel / bios32.c
index 25552508c3fd3c63930cec55893c41dcbbd72b0d..c3165f0fef6359faeea88e9553f1661c71eb6a24 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/io.h>
 
 #include <asm/mach-types.h>
+#include <asm/mach/map.h>
 #include <asm/mach/pci.h>
 
 static int debug_pci;
@@ -627,3 +628,15 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
 
        return 0;
 }
+
+void __init pci_map_io_early(unsigned long pfn)
+{
+       struct map_desc pci_io_desc = {
+               .virtual        = PCI_IO_VIRT_BASE,
+               .type           = MT_DEVICE,
+               .length         = SZ_64K,
+       };
+
+       pci_io_desc.pfn = pfn;
+       iotable_init(&pci_io_desc, 1);
+}