ar71xx: add support for 3.7
[openwrt.git] / target / linux / ar71xx / patches-3.7 / 165-MIPS-ath79-add-QCA955X-specific-glue-to-ath79_device.patch
1 From 68368e80b4db83afe39664a7d43c8b5c7b8ac3b4 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Sun, 24 Jun 2012 13:49:33 +0200
4 Subject: [PATCH 21/34] MIPS: ath79: add QCA955X specific glue to ath79_device_reset_{set,clear}
5
6 ---
7  arch/mips/ath79/common.c |    6 ++++--
8  1 files changed, 4 insertions(+), 2 deletions(-)
9
10 --- a/arch/mips/ath79/common.c
11 +++ b/arch/mips/ath79/common.c
12 @@ -70,7 +70,8 @@ void ath79_device_reset_set(u32 mask)
13                 reg = AR913X_RESET_REG_RESET_MODULE;
14         else if (soc_is_ar933x())
15                 reg = AR933X_RESET_REG_RESET_MODULE;
16 -       else if (soc_is_ar934x())
17 +       else if (soc_is_ar934x() ||
18 +                soc_is_qca955x())
19                 reg = AR934X_RESET_REG_RESET_MODULE;
20         else
21                 BUG();
22 @@ -96,7 +97,8 @@ void ath79_device_reset_clear(u32 mask)
23                 reg = AR913X_RESET_REG_RESET_MODULE;
24         else if (soc_is_ar933x())
25                 reg = AR933X_RESET_REG_RESET_MODULE;
26 -       else if (soc_is_ar934x())
27 +       else if (soc_is_ar934x() ||
28 +                soc_is_qca955x())
29                 reg = AR934X_RESET_REG_RESET_MODULE;
30         else
31                 BUG();