ramips: use gpio-keys-polled instead of gpio-buttons
[openwrt.git] / target / linux / ar71xx / patches-3.2 / 008-MIPS-ath79-Add-AR933X-specific-glue-for-ath79_device.patch
1 From 00624e5d91c0e76f38730633eff51fc7630dd27b Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Mon, 20 Jun 2011 21:26:05 +0200
4 Subject: [PATCH 08/27] MIPS: ath79: Add AR933X specific glue for ath79_device_reset_{set,clear}
5
6 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
7 Cc: linux-mips@linux-mips.org
8 Cc: Kathy Giori <kgiori@qca.qualcomm.com>
9 Cc: "Luis R. Rodriguez" <rodrigue@qca.qualcomm.com>
10 Patchwork: https://patchwork.linux-mips.org/patch/2523/
11 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
12 ---
13 arch/mips/ath79/common.c | 4 ++++
14 arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 1 +
15 2 files changed, 5 insertions(+), 0 deletions(-)
16
17 --- a/arch/mips/ath79/common.c
18 +++ b/arch/mips/ath79/common.c
19 @@ -64,6 +64,8 @@ void ath79_device_reset_set(u32 mask)
20 reg = AR724X_RESET_REG_RESET_MODULE;
21 else if (soc_is_ar913x())
22 reg = AR913X_RESET_REG_RESET_MODULE;
23 + else if (soc_is_ar933x())
24 + reg = AR933X_RESET_REG_RESET_MODULE;
25 else
26 BUG();
27
28 @@ -86,6 +88,8 @@ void ath79_device_reset_clear(u32 mask)
29 reg = AR724X_RESET_REG_RESET_MODULE;
30 else if (soc_is_ar913x())
31 reg = AR913X_RESET_REG_RESET_MODULE;
32 + else if (soc_is_ar933x())
33 + reg = AR933X_RESET_REG_RESET_MODULE;
34 else
35 BUG();
36
37 --- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
38 +++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
39 @@ -173,6 +173,7 @@
40
41 #define AR724X_RESET_REG_RESET_MODULE 0x1c
42
43 +#define AR933X_RESET_REG_RESET_MODULE 0x1c
44 #define AR933X_RESET_REG_BOOTSTRAP 0xac
45
46 #define MISC_INT_ETHSW BIT(12)
This page took 0.053962 seconds and 5 git commands to generate.