Changeset 41794


Ignore:
Timestamp:
2014-07-21T21:26:50+02:00 (4 years ago)
Author:
blogic
Message:

ar71xx: Register reset button on UBNT AirGW

The airGateway has a reset button connected to GPIO 12, so we should use it.

Signed-off-by: Matthew Reeve <mreeve@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/patches-3.10/722-MIPS-ath79-add-airGateway-support.patch

    r41777 r41794  
    1313 #include "dev-eth.h" 
    1414 #include "dev-gpio-buttons.h" 
    15 @@ -389,3 +391,50 @@ static void __init ubnt_nano_m_xw_setup( 
     15@@ -389,3 +391,65 @@ static void __init ubnt_nano_m_xw_setup( 
    1616  
    1717 MIPS_MACHINE(ATH79_MACH_UBNT_NANO_M_XW, "UBNT-NM-XW", "Ubiquiti Nanostation M XW", 
     
    2626+               .gpio      = 1, 
    2727+       }, 
     28+}; 
     29+ 
     30+static struct gpio_keys_button airgateway_gpio_keys[] __initdata = { 
     31+       { 
     32+               .desc           = "reset", 
     33+               .type           = EV_KEY, 
     34+               .code           = KEY_RESTART, 
     35+               .debounce_interval      = UBNT_XM_KEYS_DEBOUNCE_INTERVAL, 
     36+               .gpio           = 12, 
     37+               .active_low     = 1, 
     38+       } 
    2839+}; 
    2940+ 
     
    4960+       ath79_register_leds_gpio(-1, ARRAY_SIZE(ubnt_airgateway_gpio_leds), 
    5061+                                ubnt_airgateway_gpio_leds); 
     62+ 
     63+       ath79_register_gpio_keys_polled(-1, UBNT_XM_KEYS_POLL_INTERVAL, 
     64+                                       ARRAY_SIZE(airgateway_gpio_keys), 
     65+                                       airgateway_gpio_keys); 
    5166+ 
    5267+       ath79_init_mac(ath79_eth1_data.mac_addr, mac0, 0); 
Note: See TracChangeset for help on using the changeset viewer.