ar71xx: add support for Buffalo WZR 600DHP
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.7 / 003-MIPS-AR71xx-Fix-AR71XX_PCI_MEM_SIZE.patch
1 From fe950df70013a9f3368918aab697eec15f80ac67 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Tue, 29 Jan 2013 08:27:04 +0000
4 Subject: [PATCH] MIPS: AR71xx: Fix AR71XX_PCI_MEM_SIZE
5
6 commit fe950df70013a9f3368918aab697eec15f80ac67 upstream.
7
8 The base address of the PCI memory is 0x10000000 and the base address of the
9 PCI configuration space is 0x17000000 on the AR71xx SoCs.
10
11 The AR71XX_PCI_MEM_SIZE is defined as 0x08000000 which is wrong because that
12 overlaps with the configuration space. This patch fixes the value of the
13 AR71XX_PCI_MEM_SIZE constant, in order to avoid this resource conflicts.
14
15 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
16 Patchwork: http://patchwork.linux-mips.org/patch/4873/
17 Signed-off-by: John Crispin <blogic@openwrt.org>
18 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
19 ---
20 arch/mips/pci/pci-ar71xx.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/arch/mips/pci/pci-ar71xx.c
24 +++ b/arch/mips/pci/pci-ar71xx.c
25 @@ -24,7 +24,7 @@
26 #include <asm/mach-ath79/pci.h>
27
28 #define AR71XX_PCI_MEM_BASE 0x10000000
29 -#define AR71XX_PCI_MEM_SIZE 0x08000000
30 +#define AR71XX_PCI_MEM_SIZE 0x07000000
31
32 #define AR71XX_PCI_WIN0_OFFS 0x10000000
33 #define AR71XX_PCI_WIN1_OFFS 0x11000000