ar71xx: Ext LNA patch for TUBE2H and HORNET-UB targets

Signed-off-by: Christophe Prévotaux <c.prevotaux@rural-networks.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44693 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
John Crispin 2015-03-12 10:06:53 +00:00
parent f30e32991d
commit 4d998f98f0
2 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#define HORNET_UB_GPIO_LED_LAN 13 #define HORNET_UB_GPIO_LED_LAN 13
#define HORNET_UB_GPIO_LED_WAN 17 #define HORNET_UB_GPIO_LED_WAN 17
#define HORNET_UB_GPIO_LED_WPS 27 #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_RESET 12
#define HORNET_UB_GPIO_BTN_WPS 11 #define HORNET_UB_GPIO_BTN_WPS 11
@ -104,6 +105,10 @@ static void __init hornet_ub_gpio_setup(void)
gpio_request_one(HORNET_UB_GPIO_USB_POWER, gpio_request_one(HORNET_UB_GPIO_USB_POWER,
GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
"USB power"); "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)

View File

@ -26,6 +26,7 @@
#define TUBE2H_GPIO_LED_SIGNAL2 13 #define TUBE2H_GPIO_LED_SIGNAL2 13
#define TUBE2H_GPIO_LED_LAN 17 #define TUBE2H_GPIO_LED_LAN 17
#define TUBE2H_GPIO_LED_SIGNAL1 27 #define TUBE2H_GPIO_LED_SIGNAL1 27
#define TUBE2H_GPIO_EXT_LNA 28
#define TUBE2H_GPIO_BTN_RESET 12 #define TUBE2H_GPIO_BTN_RESET 12
@ -92,6 +93,10 @@ static void __init tube2h_setup(void)
t |= AR933X_BOOTSTRAP_MDIO_GPIO_EN; t |= AR933X_BOOTSTRAP_MDIO_GPIO_EN;
ath79_reset_wr(AR933X_RESET_REG_BOOTSTRAP, t); 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_wmac(art + TUBE2H_CALDATA_OFFSET, NULL);
ath79_register_m25p80(NULL); ath79_register_m25p80(NULL);