From f6f8234439737171e571a41264280e844a429699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Sun, 30 Nov 2014 18:28:29 +0100 Subject: [PATCH] ARM: BCM5301X: Add buttons for Netgear R6250 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki Signed-off-by: Hauke Mehrtens --- arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 25 +++++++++++++++++++++++++ arch/arm/boot/dts/bcm5301x.dtsi | 1 + 2 files changed, 26 insertions(+) --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts @@ -66,4 +66,29 @@ linux,default-trigger = "default-off"; }; }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <200>; + + wps { + label = "WPS"; + linux,code = ; + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; + }; + + rfkill { + label = "WiFi"; + linux,code = ; + gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>; + }; + + restart { + label = "Reset"; + linux,code = ; + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; + }; + }; }; --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -9,6 +9,7 @@ */ #include +#include #include #include #include "skeleton.dtsi" upstream openwrtJames
aboutsummaryrefslogtreecommitdiffstats
blob: 5dc1e6713f5c801b9a6f72244eeea19b0ce658bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/ptrace.h b/ptrace.h
index ddb46cb..48a54b8 100644
--- a/ptrace.h
+++ b/ptrace.h
@@ -55,7 +55,14 @@ extern long ptrace(int, int, char *, long);
 # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args
 #endif
 
+#if POWERPC
+#include <linux/types.h>
+#define __ASSEMBLY__
+#endif
 #include <linux/ptrace.h>
+#if POWERPC
+#undef __ASSEMBLY__
+#endif
 
 #ifdef HAVE_STRUCT_IA64_FPREG
 # undef ia64_fpreg