aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-14 05:45:25 -0400
committerRalf Baechle <ralf@linux-mips.org>2012-05-15 11:49:09 -0400
commitfce5cc6e0ddc601e504063548034766c5c5a78d1 (patch)
tree7cd6498b983f4f8efb22070b22c77f9afb2388f9 /arch/mips/include/asm/mach-ath79/ar71xx_regs.h
parent4dbcbdf8135def8f704b130305721bdd42a8078b (diff)
MIPS: ath79: add IRQ handling code for AR934X
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com> Cc: linux-mips@linux-mips.org Cc: mcgrof@infradead.org Patchwork: https://patchwork.linux-mips.org/patch/3510/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-ath79/ar71xx_regs.h')
-rw-r--r--arch/mips/include/asm/mach-ath79/ar71xx_regs.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
index 1a9234b5150b..d6af4eb5d2c0 100644
--- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
+++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
@@ -92,6 +92,12 @@
92#define AR933X_DDR_REG_FLUSH_USB 0x84 92#define AR933X_DDR_REG_FLUSH_USB 0x84
93#define AR933X_DDR_REG_FLUSH_WMAC 0x88 93#define AR933X_DDR_REG_FLUSH_WMAC 0x88
94 94
95#define AR934X_DDR_REG_FLUSH_GE0 0x9c
96#define AR934X_DDR_REG_FLUSH_GE1 0xa0
97#define AR934X_DDR_REG_FLUSH_USB 0xa4
98#define AR934X_DDR_REG_FLUSH_PCIE 0xa8
99#define AR934X_DDR_REG_FLUSH_WMAC 0xac
100
95/* 101/*
96 * PLL block 102 * PLL block
97 */ 103 */
@@ -222,6 +228,7 @@
222#define AR933X_RESET_REG_BOOTSTRAP 0xac 228#define AR933X_RESET_REG_BOOTSTRAP 0xac
223 229
224#define AR934X_RESET_REG_BOOTSTRAP 0xb0 230#define AR934X_RESET_REG_BOOTSTRAP 0xb0
231#define AR934X_RESET_REG_PCIE_WMAC_INT_STATUS 0xac
225 232
226#define MISC_INT_ETHSW BIT(12) 233#define MISC_INT_ETHSW BIT(12)
227#define MISC_INT_TIMER4 BIT(10) 234#define MISC_INT_TIMER4 BIT(10)
@@ -295,6 +302,24 @@
295#define AR934X_BOOTSTRAP_SDRAM_DISABLED BIT(1) 302#define AR934X_BOOTSTRAP_SDRAM_DISABLED BIT(1)
296#define AR934X_BOOTSTRAP_DDR1 BIT(0) 303#define AR934X_BOOTSTRAP_DDR1 BIT(0)
297 304
305#define AR934X_PCIE_WMAC_INT_WMAC_MISC BIT(0)
306#define AR934X_PCIE_WMAC_INT_WMAC_TX BIT(1)
307#define AR934X_PCIE_WMAC_INT_WMAC_RXLP BIT(2)
308#define AR934X_PCIE_WMAC_INT_WMAC_RXHP BIT(3)
309#define AR934X_PCIE_WMAC_INT_PCIE_RC BIT(4)
310#define AR934X_PCIE_WMAC_INT_PCIE_RC0 BIT(5)
311#define AR934X_PCIE_WMAC_INT_PCIE_RC1 BIT(6)
312#define AR934X_PCIE_WMAC_INT_PCIE_RC2 BIT(7)
313#define AR934X_PCIE_WMAC_INT_PCIE_RC3 BIT(8)
314#define AR934X_PCIE_WMAC_INT_WMAC_ALL \
315 (AR934X_PCIE_WMAC_INT_WMAC_MISC | AR934X_PCIE_WMAC_INT_WMAC_TX | \
316 AR934X_PCIE_WMAC_INT_WMAC_RXLP | AR934X_PCIE_WMAC_INT_WMAC_RXHP)
317
318#define AR934X_PCIE_WMAC_INT_PCIE_ALL \
319 (AR934X_PCIE_WMAC_INT_PCIE_RC | AR934X_PCIE_WMAC_INT_PCIE_RC0 | \
320 AR934X_PCIE_WMAC_INT_PCIE_RC1 | AR934X_PCIE_WMAC_INT_PCIE_RC2 | \
321 AR934X_PCIE_WMAC_INT_PCIE_RC3)
322
298#define REV_ID_MAJOR_MASK 0xfff0 323#define REV_ID_MAJOR_MASK 0xfff0
299#define REV_ID_MAJOR_AR71XX 0x00a0 324#define REV_ID_MAJOR_AR71XX 0x00a0
300#define REV_ID_MAJOR_AR913X 0x00b0 325#define REV_ID_MAJOR_AR913X 0x00b0