]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: ath79: Add AR933X specific glue for ath79_device_reset_{set,clear}
authorGabor Juhos <juhosg@openwrt.org>
Mon, 20 Jun 2011 19:26:05 +0000 (21:26 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 7 Dec 2011 22:02:45 +0000 (22:02 +0000)
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/2523/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ath79/common.c
arch/mips/include/asm/mach-ath79/ar71xx_regs.h

index 58f60e722a0340e01338dc50863194eb6fc19eee..38c2ad7bd87171a589b4c42d79422aa65190727e 100644 (file)
@@ -64,6 +64,8 @@ void ath79_device_reset_set(u32 mask)
                reg = AR724X_RESET_REG_RESET_MODULE;
        else if (soc_is_ar913x())
                reg = AR913X_RESET_REG_RESET_MODULE;
+       else if (soc_is_ar933x())
+               reg = AR933X_RESET_REG_RESET_MODULE;
        else
                BUG();
 
@@ -86,6 +88,8 @@ void ath79_device_reset_clear(u32 mask)
                reg = AR724X_RESET_REG_RESET_MODULE;
        else if (soc_is_ar913x())
                reg = AR913X_RESET_REG_RESET_MODULE;
+       else if (soc_is_ar933x())
+               reg = AR933X_RESET_REG_RESET_MODULE;
        else
                BUG();
 
index 418b7392e8c3a5318e1224111cd7965998a8b969..c7159e3479c205668bc6fc056009c42ca2499d9a 100644 (file)
 
 #define AR724X_RESET_REG_RESET_MODULE          0x1c
 
+#define AR933X_RESET_REG_RESET_MODULE          0x1c
 #define AR933X_RESET_REG_BOOTSTRAP             0xac
 
 #define MISC_INT_ETHSW                 BIT(12)