diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-03-14 05:45:26 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-05-15 11:49:09 -0400 |
commit | 42184768b36b2dad88a3705d689891b5da884c85 (patch) | |
tree | ba40b74465509b34d6358806a67f33add92a9e94 /arch/mips/ath79/common.c | |
parent | fce5cc6e0ddc601e504063548034766c5c5a78d1 (diff) |
MIPS: ath79: add AR934X specific glue to ath79_device_reset_{clear,set}
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/3511/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ath79/common.c')
-rw-r--r-- | arch/mips/ath79/common.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/mips/ath79/common.c b/arch/mips/ath79/common.c index f0fda982b965..5a4adfc9d79d 100644 --- a/arch/mips/ath79/common.c +++ b/arch/mips/ath79/common.c | |||
@@ -1,9 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Atheros AR71XX/AR724X/AR913X common routines | 2 | * Atheros AR71XX/AR724X/AR913X common routines |
3 | * | 3 | * |
4 | * Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org> | 4 | * Copyright (C) 2010-2011 Jaiganesh Narayanan <jnarayanan@atheros.com> |
5 | * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org> | ||
5 | * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> | 6 | * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> |
6 | * | 7 | * |
8 | * Parts of this file are based on Atheros' 2.6.15/2.6.31 BSP | ||
9 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | 10 | * This program is free software; you can redistribute it and/or modify it |
8 | * under the terms of the GNU General Public License version 2 as published | 11 | * under the terms of the GNU General Public License version 2 as published |
9 | * by the Free Software Foundation. | 12 | * by the Free Software Foundation. |
@@ -67,6 +70,8 @@ void ath79_device_reset_set(u32 mask) | |||
67 | reg = AR913X_RESET_REG_RESET_MODULE; | 70 | reg = AR913X_RESET_REG_RESET_MODULE; |
68 | else if (soc_is_ar933x()) | 71 | else if (soc_is_ar933x()) |
69 | reg = AR933X_RESET_REG_RESET_MODULE; | 72 | reg = AR933X_RESET_REG_RESET_MODULE; |
73 | else if (soc_is_ar934x()) | ||
74 | reg = AR934X_RESET_REG_RESET_MODULE; | ||
70 | else | 75 | else |
71 | BUG(); | 76 | BUG(); |
72 | 77 | ||
@@ -91,6 +96,8 @@ void ath79_device_reset_clear(u32 mask) | |||
91 | reg = AR913X_RESET_REG_RESET_MODULE; | 96 | reg = AR913X_RESET_REG_RESET_MODULE; |
92 | else if (soc_is_ar933x()) | 97 | else if (soc_is_ar933x()) |
93 | reg = AR933X_RESET_REG_RESET_MODULE; | 98 | reg = AR933X_RESET_REG_RESET_MODULE; |
99 | else if (soc_is_ar934x()) | ||
100 | reg = AR934X_RESET_REG_RESET_MODULE; | ||
94 | else | 101 | else |
95 | BUG(); | 102 | BUG(); |
96 | 103 | ||