Changeset 39408


Ignore:
Timestamp:
2014-01-28T18:20:08+01:00 (4 years ago)
Author:
juhosg
Message:

AA: ar71xx: fix bad RX sensitivity on newer TL-WDR4300 boards

Backport of r39392.

On recent TL-WDR4300 boards the external LNAs of the 2.4GHz
interface are connected to GPIO lines. Because these GPIO
lines are disabled by default, the RX sensitivity of the
device is quite bad.

Setup the GPIOs of the external LNAs to fix the issue.

[Backport note: the 'ath79_wmac_set_ext_lna_gpio' function
is not available in AA, use the 'gpio_request_one' instead.]

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/attitude_adjustment/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c

    r34333 r39408  
    3737#define WDR4300_GPIO_BTN_WPS            16 
    3838#define WDR4300_GPIO_BTN_RFKILL         17 
     39 
     40#define WDR4300_GPIO_EXTERNAL_LNA0      18 
     41#define WDR4300_GPIO_EXTERNAL_LNA1      19 
    3942 
    4043#define WDR4300_GPIO_USB1_POWER         22 
     
    153156                                        wdr4300_gpio_keys); 
    154157 
     158        gpio_request_one(WDR4300_GPIO_EXTERNAL_LNA0, 
     159                         GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, 
     160                         "external LNA0"); 
     161        gpio_request_one(WDR4300_GPIO_EXTERNAL_LNA1, 
     162                         GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, 
     163                         "external LNA1"); 
     164 
    155165        ath79_init_mac(tmpmac, mac, -1); 
    156166        ath79_register_wmac(art + WDR4300_WMAC_CALDATA_OFFSET, tmpmac); 
Note: See TracChangeset for help on using the changeset viewer.