diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2016-06-21 16:20:36 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-06-21 16:20:36 +0200 |
commit | 9cb35e0499e49a24b480f14e4bab23f94a23aa87 (patch) | |
tree | 16b428aa771691ec1386afbf3de6ab4a297c2883 /target/linux/ar71xx | |
parent | 0a1b163954037ce72a2af88b2030f595fb46a753 (diff) | |
download | master-187ad058-9cb35e0499e49a24b480f14e4bab23f94a23aa87.tar.gz master-187ad058-9cb35e0499e49a24b480f14e4bab23f94a23aa87.tar.bz2 master-187ad058-9cb35e0499e49a24b480f14e4bab23f94a23aa87.zip |
ar71xx/cpe510: enable LNA for CPE210/220/510/520
The LNA improves the rx path. Within a simple test setup
it improved the signal from -60dbm to -40dbm.
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c index 8bf5c0f622..5cb052a84a 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c @@ -30,6 +30,9 @@ #define CPE510_GPIO_LED_L3 15 #define CPE510_GPIO_LED_L4 16 +#define CPE510_GPIO_EXTERNAL_LNA0 18 +#define CPE510_GPIO_EXTERNAL_LNA1 19 + #define CPE510_GPIO_BTN_RESET 4 #define CPE510_KEYS_POLL_INTERVAL 20 /* msecs */ @@ -93,6 +96,9 @@ static void __init cpe510_setup(void) ARRAY_SIZE(cpe510_gpio_keys), cpe510_gpio_keys); + ath79_wmac_set_ext_lna_gpio(0, CPE510_GPIO_EXTERNAL_LNA0); + ath79_wmac_set_ext_lna_gpio(1, CPE510_GPIO_EXTERNAL_LNA1); + ath79_register_m25p80(NULL); ath79_register_mdio(1, 0); |