[LEDE-DEV] [PATCHv2 1/4] mac80211: enable use of GPI9 of ath9k
hackpascal
hackpascal at gmail.com
Sat Sep 2 22:43:18 PDT 2017
From: Weijie Gao <hackpascal at gmail.com>
GPI9 (input-only pin) is used by Netgear WNDR4500v3 as the wireless button,
but not enabled in ath9k.
This patch enables the pin by adding corresponding bit in the usable gpio
masks.
Signed-off-by: Weijie Gao <hackpascal at gmail.com>
---
.../552-ath9k-enable-use-of-wmac-gpi9.patch | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 package/kernel/mac80211/patches/552-ath9k-enable-use-of-wmac-gpi9.patch
diff --git a/package/kernel/mac80211/patches/552-ath9k-enable-use-of-wmac-gpi9.patch b/package/kernel/mac80211/patches/552-ath9k-enable-use-of-wmac-gpi9.patch
new file mode 100644
index 0000000000..b64006a202
--- /dev/null
+++ b/package/kernel/mac80211/patches/552-ath9k-enable-use-of-wmac-gpi9.patch
@@ -0,0 +1,22 @@
+--- a/drivers/net/wireless/ath/ath9k/reg.h
++++ b/drivers/net/wireless/ath/ath9k/reg.h
+@@ -1136,8 +1136,8 @@ enum {
+ #define AR9280_GPIO_MASK 0x000003FF
+ #define AR9285_GPIO_MASK 0x00000FFF
+ #define AR9287_GPIO_MASK 0x000003FF
+-#define AR9300_GPIO_MASK 0x0000F4FF
+-#define AR9330_GPIO_MASK 0x0000F4FF
++#define AR9300_GPIO_MASK 0x0000F6FF
++#define AR9330_GPIO_MASK 0x0000F6FF
+ #define AR9340_GPIO_MASK 0x0000000F
+ #define AR9462_GPIO_MASK 0x00003FFF
+ #define AR9485_GPIO_MASK 0x00000FFF
+@@ -1145,7 +1145,7 @@ enum {
+ #define AR9550_GPIO_MASK 0x0000000F
+ #define AR9561_GPIO_MASK 0x0000000F
+ #define AR9565_GPIO_MASK 0x00003FFF
+-#define AR9580_GPIO_MASK 0x0000F4FF
++#define AR9580_GPIO_MASK 0x0000F6FF
+ #define AR7010_GPIO_MASK 0x0000FFFF
+
+ #define AR_GPIO_IN_OUT (AR_SREV_9340(ah) ? 0x4028 : 0x4048)
--
2.11.0
More information about the Lede-dev
mailing list