diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-06-20 15:26:06 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-12-07 17:02:45 -0500 |
commit | 54eed4c77ca1d02228f07bee74a1afe081393ab0 (patch) | |
tree | 5dede063a5ec57facde120c90df3e20202a9c4b8 | |
parent | 7ee15d8a2837841d75f56319b94510ed950094b5 (diff) |
MIPS: ath79: Add AR933X specific IRQ initialization
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: Kathy Giori <kgiori@qca.qualcomm.com>
Cc: "Luis R. Rodriguez" <rodrigue@qca.qualcomm.com>
Patchwork: https://patchwork.linux-mips.org/patch/2530/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/ath79/irq.c | 5 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/arch/mips/ath79/irq.c b/arch/mips/ath79/irq.c index 0d98114cbf4d..1b073de44680 100644 --- a/arch/mips/ath79/irq.c +++ b/arch/mips/ath79/irq.c | |||
@@ -129,7 +129,7 @@ static void __init ath79_misc_irq_init(void) | |||
129 | 129 | ||
130 | if (soc_is_ar71xx() || soc_is_ar913x()) | 130 | if (soc_is_ar71xx() || soc_is_ar913x()) |
131 | ath79_misc_irq_chip.irq_mask_ack = ar71xx_misc_irq_mask; | 131 | ath79_misc_irq_chip.irq_mask_ack = ar71xx_misc_irq_mask; |
132 | else if (soc_is_ar724x()) | 132 | else if (soc_is_ar724x() || soc_is_ar933x()) |
133 | ath79_misc_irq_chip.irq_ack = ar724x_misc_irq_ack; | 133 | ath79_misc_irq_chip.irq_ack = ar724x_misc_irq_ack; |
134 | else | 134 | else |
135 | BUG(); | 135 | BUG(); |
@@ -186,6 +186,9 @@ void __init arch_init_irq(void) | |||
186 | } else if (soc_is_ar913x()) { | 186 | } else if (soc_is_ar913x()) { |
187 | ath79_ip2_flush_reg = AR913X_DDR_REG_FLUSH_WMAC; | 187 | ath79_ip2_flush_reg = AR913X_DDR_REG_FLUSH_WMAC; |
188 | ath79_ip3_flush_reg = AR913X_DDR_REG_FLUSH_USB; | 188 | ath79_ip3_flush_reg = AR913X_DDR_REG_FLUSH_USB; |
189 | } else if (soc_is_ar933x()) { | ||
190 | ath79_ip2_flush_reg = AR933X_DDR_REG_FLUSH_WMAC; | ||
191 | ath79_ip3_flush_reg = AR933X_DDR_REG_FLUSH_USB; | ||
189 | } else | 192 | } else |
190 | BUG(); | 193 | BUG(); |
191 | 194 | ||
diff --git a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h index c7159e3479c2..9c76185801d0 100644 --- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h +++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h | |||
@@ -82,6 +82,11 @@ | |||
82 | #define AR913X_DDR_REG_FLUSH_USB 0x84 | 82 | #define AR913X_DDR_REG_FLUSH_USB 0x84 |
83 | #define AR913X_DDR_REG_FLUSH_WMAC 0x88 | 83 | #define AR913X_DDR_REG_FLUSH_WMAC 0x88 |
84 | 84 | ||
85 | #define AR933X_DDR_REG_FLUSH_GE0 0x7c | ||
86 | #define AR933X_DDR_REG_FLUSH_GE1 0x80 | ||
87 | #define AR933X_DDR_REG_FLUSH_USB 0x84 | ||
88 | #define AR933X_DDR_REG_FLUSH_WMAC 0x88 | ||
89 | |||
85 | /* | 90 | /* |
86 | * PLL block | 91 | * PLL block |
87 | */ | 92 | */ |