ar71xx: add support for Buffalo WZR 600DHP
[oweals/openwrt.git] / target / linux / ar71xx / patches-3.7 / 002-MIPS-AR724x-Fix-AR724X_PCI_MEM_SIZE.patch
1 From 4c960910e2fb3a301ee4a504fa6b2c5204efeab0 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Tue, 29 Jan 2013 08:27:03 +0000
4 Subject: [PATCH] MIPS: AR724x: Fix AR724X_PCI_MEM_SIZE
5
6 commit 4c960910e2fb3a301ee4a504fa6b2c5204efeab0 upstream.
7
8 The base address of the PCI memory is
9 0x10000000 and the base address of the
10 PCI configuration space is 0x14000000
11 on the AR724x SoCs.
12
13 The AR724X_PCI_MEM_SIZE is defined as
14 0x08000000 which is wrong because that
15 overlaps  with the configuration space.
16
17 The patch fixes the value of the
18 AR724X_PCI_MEM_SIZE constant, in order
19 to avoid this resource conflicts.
20
21 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
22 Patchwork: http://patchwork.linux-mips.org/patch/4872/
23 Signed-off-by: John Crispin <blogic@openwrt.org>
24 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
25 ---
26  arch/mips/pci/pci-ar724x.c |    2 +-
27  1 file changed, 1 insertion(+), 1 deletion(-)
28
29 --- a/arch/mips/pci/pci-ar724x.c
30 +++ b/arch/mips/pci/pci-ar724x.c
31 @@ -21,7 +21,7 @@
32  #define AR724X_PCI_CTRL_SIZE   0x100
33  
34  #define AR724X_PCI_MEM_BASE    0x10000000
35 -#define AR724X_PCI_MEM_SIZE    0x08000000
36 +#define AR724X_PCI_MEM_SIZE    0x04000000
37  
38  #define AR724X_PCI_REG_RESET           0x18
39  #define AR724X_PCI_REG_INT_STATUS      0x4c