linux-mips
[Top] [All Lists]

[PATCH 06/13] MIPS: ath79: add AR933X specific IRQ initialization

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 06/13] MIPS: ath79: add AR933X specific IRQ initialization
From: Gabor Juhos <juhosg@openwrt.org>
Date: Mon, 20 Jun 2011 21:26:06 +0200
Cc: linux-mips@linux-mips.org, Kathy Giori <kgiori@qca.qualcomm.com>, "Luis R. Rodriguez" <rodrigue@qca.qualcomm.com>, Gabor Juhos <juhosg@openwrt.org>
In-reply-to: <1308597973-6037-1-git-send-email-juhosg@openwrt.org>
References: <1308597973-6037-1-git-send-email-juhosg@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
---
 arch/mips/ath79/irq.c                          |    5 ++++-
 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 0d98114..1b073de 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)
 
        if (soc_is_ar71xx() || soc_is_ar913x())
                ath79_misc_irq_chip.irq_mask_ack = ar71xx_misc_irq_mask;
-       else if (soc_is_ar724x())
+       else if (soc_is_ar724x() || soc_is_ar933x())
                ath79_misc_irq_chip.irq_ack = ar724x_misc_irq_ack;
        else
                BUG();
@@ -186,6 +186,9 @@ void __init arch_init_irq(void)
        } else if (soc_is_ar913x()) {
                ath79_ip2_flush_reg = AR913X_DDR_REG_FLUSH_WMAC;
                ath79_ip3_flush_reg = AR913X_DDR_REG_FLUSH_USB;
+       } else if (soc_is_ar933x()) {
+               ath79_ip2_flush_reg = AR933X_DDR_REG_FLUSH_WMAC;
+               ath79_ip3_flush_reg = AR933X_DDR_REG_FLUSH_USB;
        } else
                BUG();
 
diff --git a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h 
b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
index c7159e3..9c76185 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 @@
 #define AR913X_DDR_REG_FLUSH_USB       0x84
 #define AR913X_DDR_REG_FLUSH_WMAC      0x88
 
+#define AR933X_DDR_REG_FLUSH_GE0       0x7c
+#define AR933X_DDR_REG_FLUSH_GE1       0x80
+#define AR933X_DDR_REG_FLUSH_USB       0x84
+#define AR933X_DDR_REG_FLUSH_WMAC      0x88
+
 /*
  * PLL block
  */
-- 
1.7.2.1


<Prev in Thread] Current Thread [Next in Thread>