projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx/cpe510: enable LNA for CPE210/220/510/520
[openwrt/openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
ath79
/
mach-hornet-ub.c
diff --git
a/target/linux/ar71xx/files/arch/mips/ath79/mach-hornet-ub.c
b/target/linux/ar71xx/files/arch/mips/ath79/mach-hornet-ub.c
index b36c5115d6a70daf1e4ae60b0cd0afdca80bdf5f..1d2142458563d47ef517aa3c742667232e52d65f 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ath79/mach-hornet-ub.c
+++ b/
target/linux/ar71xx/files/arch/mips/ath79/mach-hornet-ub.c
@@
-27,6
+27,7
@@
#define HORNET_UB_GPIO_LED_LAN 13
#define HORNET_UB_GPIO_LED_WAN 17
#define HORNET_UB_GPIO_LED_WPS 27
#define HORNET_UB_GPIO_LED_LAN 13
#define HORNET_UB_GPIO_LED_WAN 17
#define HORNET_UB_GPIO_LED_WPS 27
+#define HORNET_UB_GPIO_EXT_LNA 28
#define HORNET_UB_GPIO_BTN_RESET 12
#define HORNET_UB_GPIO_BTN_WPS 11
#define HORNET_UB_GPIO_BTN_RESET 12
#define HORNET_UB_GPIO_BTN_WPS 11
@@
-64,7
+65,7
@@
static struct gpio_led hornet_ub_leds_gpio[] __initdata = {
{
.name = "alfa:blue:wps",
.gpio = HORNET_UB_GPIO_LED_WPS,
{
.name = "alfa:blue:wps",
.gpio = HORNET_UB_GPIO_LED_WPS,
- .active_low =
0
,
+ .active_low =
1
,
},
};
},
};
@@
-104,6
+105,10
@@
static void __init hornet_ub_gpio_setup(void)
gpio_request_one(HORNET_UB_GPIO_USB_POWER,
GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
"USB power");
gpio_request_one(HORNET_UB_GPIO_USB_POWER,
GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
"USB power");
+ gpio_request_one(HORNET_UB_GPIO_EXT_LNA,
+ GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
+ "external LNA0");
+
}
static void __init hornet_ub_setup(void)
}
static void __init hornet_ub_setup(void)