]> Pileus Git - ~andy/linux/commitdiff
MIPS: ath79: move global PCI defines into a common header
authorGabor Juhos <juhosg@openwrt.org>
Mon, 4 Feb 2013 10:56:53 +0000 (11:56 +0100)
committerJohn Crispin <blogic@openwrt.org>
Sun, 17 Feb 2013 00:25:35 +0000 (01:25 +0100)
The constants will be used by a subsequent patch.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4907/
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/include/asm/mach-ath79/ar71xx_regs.h
arch/mips/pci/pci-ar71xx.c
arch/mips/pci/pci-ar724x.c

index 7d44b5d5f6093dc3929207b20bfcf2c0c7ed0367..7c87bfe6e4ffd836860628255dff8b1d5b8e29aa 100644 (file)
 #define AR71XX_RESET_BASE      (AR71XX_APB_BASE + 0x00060000)
 #define AR71XX_RESET_SIZE      0x100
 
+#define AR71XX_PCI_MEM_BASE    0x10000000
+#define AR71XX_PCI_MEM_SIZE    0x07000000
+
+#define AR71XX_PCI_WIN0_OFFS   0x10000000
+#define AR71XX_PCI_WIN1_OFFS   0x11000000
+#define AR71XX_PCI_WIN2_OFFS   0x12000000
+#define AR71XX_PCI_WIN3_OFFS   0x13000000
+#define AR71XX_PCI_WIN4_OFFS   0x14000000
+#define AR71XX_PCI_WIN5_OFFS   0x15000000
+#define AR71XX_PCI_WIN6_OFFS   0x16000000
+#define AR71XX_PCI_WIN7_OFFS   0x07000000
+
+#define AR71XX_PCI_CFG_BASE    \
+       (AR71XX_PCI_MEM_BASE + AR71XX_PCI_WIN7_OFFS + 0x10000)
+#define AR71XX_PCI_CFG_SIZE    0x100
+
 #define AR7240_USB_CTRL_BASE   (AR71XX_APB_BASE + 0x00030000)
 #define AR7240_USB_CTRL_SIZE   0x100
 #define AR7240_OHCI_BASE       0x1b000000
 #define AR7240_OHCI_SIZE       0x1000
 
+#define AR724X_PCI_MEM_BASE    0x10000000
+#define AR724X_PCI_MEM_SIZE    0x04000000
+
+#define AR724X_PCI_CFG_BASE    0x14000000
+#define AR724X_PCI_CFG_SIZE    0x1000
+#define AR724X_PCI_CTRL_BASE   (AR71XX_APB_BASE + 0x000f0000)
+#define AR724X_PCI_CTRL_SIZE   0x100
+
 #define AR724X_EHCI_BASE       0x1b000000
 #define AR724X_EHCI_SIZE       0x1000
 
index 0d8412fc50473599d48fd129007ad56bce3f17a2..35ee23450d872e6e2dd155740442b48ba5a22ca7 100644 (file)
 #include <asm/mach-ath79/ath79.h>
 #include <asm/mach-ath79/pci.h>
 
-#define AR71XX_PCI_MEM_BASE    0x10000000
-#define AR71XX_PCI_MEM_SIZE    0x07000000
-
-#define AR71XX_PCI_WIN0_OFFS           0x10000000
-#define AR71XX_PCI_WIN1_OFFS           0x11000000
-#define AR71XX_PCI_WIN2_OFFS           0x12000000
-#define AR71XX_PCI_WIN3_OFFS           0x13000000
-#define AR71XX_PCI_WIN4_OFFS           0x14000000
-#define AR71XX_PCI_WIN5_OFFS           0x15000000
-#define AR71XX_PCI_WIN6_OFFS           0x16000000
-#define AR71XX_PCI_WIN7_OFFS           0x07000000
-
-#define AR71XX_PCI_CFG_BASE            \
-       (AR71XX_PCI_MEM_BASE + AR71XX_PCI_WIN7_OFFS + 0x10000)
-#define AR71XX_PCI_CFG_SIZE            0x100
-
 #define AR71XX_PCI_REG_CRP_AD_CBE      0x00
 #define AR71XX_PCI_REG_CRP_WRDATA      0x04
 #define AR71XX_PCI_REG_CRP_RDDATA      0x08
index e7aca88ba0c0d8d1051601bef920517e1ebde19c..b3f9d093c066f0e68ce6d528edeeb08d638d3579 100644 (file)
 #include <asm/mach-ath79/ar71xx_regs.h>
 #include <asm/mach-ath79/pci.h>
 
-#define AR724X_PCI_CFG_BASE    0x14000000
-#define AR724X_PCI_CFG_SIZE    0x1000
-#define AR724X_PCI_CTRL_BASE   (AR71XX_APB_BASE + 0x000f0000)
-#define AR724X_PCI_CTRL_SIZE   0x100
-
-#define AR724X_PCI_MEM_BASE    0x10000000
-#define AR724X_PCI_MEM_SIZE    0x04000000
-
 #define AR724X_PCI_REG_RESET           0x18
 #define AR724X_PCI_REG_INT_STATUS      0x4c
 #define AR724X_PCI_REG_INT_MASK                0x50