aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-2.6.37/105-ar2315_pci.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-09 18:25:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-09 18:25:55 +0000
commit4eb507901a3a671880f265f3ade9dafe3417ad7c (patch)
tree711b9bcef0c800b68766c720901aa235d9d682ca /target/linux/atheros/patches-2.6.37/105-ar2315_pci.patch
parentcf3adeaa22cc1b5871b85ceebf2a89bbbe4e5b5d (diff)
downloadupstream-4eb507901a3a671880f265f3ade9dafe3417ad7c.tar.gz
upstream-4eb507901a3a671880f265f3ade9dafe3417ad7c.tar.bz2
upstream-4eb507901a3a671880f265f3ade9dafe3417ad7c.zip
atheros: fix ath5k support on ar2315/2317
- Use physical addresses definition for AR2315 the same way as AR5312. Fixes ioremap - Fix dma mapping for AHB bus (only use the PCI DMA offset for PCI devices) Based on patches by Wojciech Dubowik SVN-Revision: 26554
Diffstat (limited to 'target/linux/atheros/patches-2.6.37/105-ar2315_pci.patch')
-rw-r--r--target/linux/atheros/patches-2.6.37/105-ar2315_pci.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/atheros/patches-2.6.37/105-ar2315_pci.patch b/target/linux/atheros/patches-2.6.37/105-ar2315_pci.patch
index 3f5e6b4528..93fa95397a 100644
--- a/target/linux/atheros/patches-2.6.37/105-ar2315_pci.patch
+++ b/target/linux/atheros/patches-2.6.37/105-ar2315_pci.patch
@@ -186,7 +186,7 @@
+ if (ar231x_devtype != DEV_TYPE_AR2315)
+ return -ENODEV;
+
-+ configspace = (unsigned long) ioremap_nocache(0x80000000, 1*1024*1024); /* Remap PCI config space */
++ configspace = (unsigned long) ioremap_nocache(AR2315_PCIEXT, 1*1024*1024); /* Remap PCI config space */
+ ar231x_pci_controller.io_map_base =
+ (unsigned long) ioremap_nocache(AR531X_MEM_BASE + AR531X_MEM_SIZE, AR531X_IO_SIZE);
+ set_io_port_base(ar231x_pci_controller.io_map_base); /* PCI I/O space */