aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-03-12 10:06:53 +0000
committerJohn Crispin <john@openwrt.org>2015-03-12 10:06:53 +0000
commit3a1a4165b861a637cc18323baefb1517a7e44084 (patch)
treef93c714464099bbbdc7352ead2cc20ac65144a25 /target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c
parentfd82ffec00ad6edc094a68778059329c8105fe21 (diff)
downloadupstream-3a1a4165b861a637cc18323baefb1517a7e44084.tar.gz
upstream-3a1a4165b861a637cc18323baefb1517a7e44084.tar.bz2
upstream-3a1a4165b861a637cc18323baefb1517a7e44084.zip
ar71xx: Ext LNA patch for TUBE2H and HORNET-UB targets
Signed-off-by: Christophe Prévotaux <c.prevotaux@rural-networks.com> SVN-Revision: 44693
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c
index b8addad397..19b32e2256 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c
@@ -26,6 +26,7 @@
#define TUBE2H_GPIO_LED_SIGNAL2 13
#define TUBE2H_GPIO_LED_LAN 17
#define TUBE2H_GPIO_LED_SIGNAL1 27
+#define TUBE2H_GPIO_EXT_LNA 28
#define TUBE2H_GPIO_BTN_RESET 12
@@ -92,6 +93,10 @@ static void __init tube2h_setup(void)
t |= AR933X_BOOTSTRAP_MDIO_GPIO_EN;
ath79_reset_wr(AR933X_RESET_REG_BOOTSTRAP, t);
+ gpio_request_one(TUBE2H_GPIO_EXT_LNA,
+ GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
+ "external LNA0");
+
ath79_register_wmac(art + TUBE2H_CALDATA_OFFSET, NULL);
ath79_register_m25p80(NULL);