diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-03-22 20:51:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-03-22 20:51:23 +0000 |
commit | 107f6ea323905e8c8cd7aaacb0f05b4ca7ee7a78 (patch) | |
tree | 1eebab4f0044b356ab01384733232a6995a344a7 /target | |
parent | bfa8064ccdf5fb7e342e3979b2a569a6979afbc5 (diff) | |
download | upstream-107f6ea323905e8c8cd7aaacb0f05b4ca7ee7a78.tar.gz upstream-107f6ea323905e8c8cd7aaacb0f05b4ca7ee7a78.tar.bz2 upstream-107f6ea323905e8c8cd7aaacb0f05b4ca7ee7a78.zip |
atheros: do not attempt to start pci on ar2317
SVN-Revision: 14982
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/atheros/patches-2.6.28/105-ar2315_pci.patch | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/target/linux/atheros/patches-2.6.28/105-ar2315_pci.patch b/target/linux/atheros/patches-2.6.28/105-ar2315_pci.patch index 69c3349230..9b76dfee46 100644 --- a/target/linux/atheros/patches-2.6.28/105-ar2315_pci.patch +++ b/target/linux/atheros/patches-2.6.28/105-ar2315_pci.patch @@ -7,7 +7,7 @@ +obj-$(CONFIG_ATHEROS_AR2315_PCI) += pci.o --- /dev/null +++ b/arch/mips/ar231x/pci.c -@@ -0,0 +1,231 @@ +@@ -0,0 +1,230 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License @@ -39,13 +39,12 @@ +#include <ar231x_platform.h> +#include <ar231x.h> +#include <ar2315_regs.h> ++#include "devices.h" + +#define AR531X_MEM_BASE 0x80800000UL +#define AR531X_MEM_SIZE 0x00ffffffUL +#define AR531X_IO_SIZE 0x00007fffUL + -+#define IS_2315() (current_cpu_data.cputype == CPU_4KEC) -+ +static unsigned long configspace; + +static int config_access(int devfn, int where, int size, u32 *ptr, bool write) @@ -184,7 +183,7 @@ +{ + u32 reg; + -+ if (!IS_2315()) ++ if (ar231x_devtype != DEV_TYPE_AR2315) + return -ENODEV; + + configspace = (unsigned long) ioremap_nocache(0x80000000, 1*1024*1024); /* Remap PCI config space */ |