Re: [LEDE-DEV] [PATCH 1/2] ath79: enable LNA for TpLink CPE510 on GPIO 18 & 19

2016-05-20 Thread Hartmut Knaack
Hi Alexander,
you are missing SoB and prefix should be ar71xx. Please resend.
Thanks,

Hartmut

Alexander Couzens schrieb am 20.05.2016 um 02:46:
> The LNA improves the rx path up to ~20dbm on those devices.
> ---
>  target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c | 6 ++
>  1 file changed, 6 insertions(+)
> 
> 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 8bf5c0f..5cb052a 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_LNA018
> +#define CPE510_GPIO_EXTERNAL_LNA119
> +
>  #define CPE510_GPIO_BTN_RESET4
>  
>  #define CPE510_KEYS_POLL_INTERVAL20 /* 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);
> 



0xFAC89148.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH 1/2] ath79: enable LNA for TpLink CPE510 on GPIO 18 & 19

2016-05-19 Thread Alexander Couzens
The LNA improves the rx path up to ~20dbm on those devices.
---
 target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c | 6 ++
 1 file changed, 6 insertions(+)

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 8bf5c0f..5cb052a 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);
-- 
2.8.2


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH 1/2] ath79: enable LNA for TpLink CPE510 on GPIO 18 & 19

2016-05-19 Thread Alexander Couzens
The LNA improves the rx path up to ~20dbm on those devices.
---
 target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c | 6 ++
 1 file changed, 6 insertions(+)

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 8bf5c0f..5cb052a 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);
-- 
2.8.2


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev