aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2007-07-24 20:33:35 +0000
committerJohn Crispin <blogic@openwrt.org>2007-07-24 20:33:35 +0000
commit4b8b73184620c7ce906477cce3499332d47d538d (patch)
tree5e028509cf1c0d7b90e546e4b5be1c309140e5b4 /target
parent7aa44d980c60d8d0967d08882962f53eb342a9a8 (diff)
downloadmaster-187ad058-4b8b73184620c7ce906477cce3499332d47d538d.tar.gz
master-187ad058-4b8b73184620c7ce906477cce3499332d47d538d.tar.bz2
master-187ad058-4b8b73184620c7ce906477cce3499332d47d538d.zip
fixed up the au1000 pci support, was caused by the au1000 having a 36bit io bus and the max add being set to 32bit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8145 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/au1000-2.6/patches/015-pci-resource.patch8
-rw-r--r--target/linux/au1000-2.6/patches/016-pci-io_map.patch10
2 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/au1000-2.6/patches/015-pci-resource.patch b/target/linux/au1000-2.6/patches/015-pci-resource.patch
new file mode 100644
index 0000000000..8bcebf5610
--- /dev/null
+++ b/target/linux/au1000-2.6/patches/015-pci-resource.patch
@@ -0,0 +1,8 @@
+1683c1683
+< #define IOPORT_RESOURCE_END 0xffffffff
+---
+> #define IOPORT_RESOURCE_END 0xfffffffffULL
+1685c1685
+< #define IOMEM_RESOURCE_END 0xffffffff
+---
+> #define IOMEM_RESOURCE_END 0xfffffffffULL
diff --git a/target/linux/au1000-2.6/patches/016-pci-io_map.patch b/target/linux/au1000-2.6/patches/016-pci-io_map.patch
new file mode 100644
index 0000000000..6a80f7cb44
--- /dev/null
+++ b/target/linux/au1000-2.6/patches/016-pci-io_map.patch
@@ -0,0 +1,10 @@
+--- linux-2.6.22.1.orig/arch/mips/au1000/common/pci.c 2007-07-24 18:42:21.031908123 +0200
++++ linux-2.6.22.1/arch/mips/au1000/common/pci.c 2007-07-24 22:12:07.373162835 +0200
+@@ -74,6 +74,7 @@
+ printk(KERN_ERR "Unable to ioremap pci space\n");
+ return 1;
+ }
++ au1x_controller.io_map_base = virt_io_addr;
+
+ #ifdef CONFIG_DMA_NONCOHERENT
+ {