ar71xx: unifi reset button support
authorGabor Juhos <juhosg@openwrt.org>
Thu, 12 Jul 2012 08:34:20 +0000 (08:34 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 12 Jul 2012 08:34:20 +0000 (08:34 +0000)
This patch adds support for reset button to Ubiquiti UniFi AP.

[juhosg: fold the patch into 608-MIPS-ath79-ubnt-xm-add-more-boards.patch]

Signed-off-by: Rocco Folino <lordzen@autistici.org>
SVN-Revision: 32677

target/linux/ar71xx/patches-3.3/608-MIPS-ath79-ubnt-xm-add-more-boards.patch

index 2dd33796932d445486fa97d1a024208a650d8e47..ec5595f7ddd1ea6ca9d7f689a08a6f47010f4ae3 100644 (file)
@@ -57,7 +57,7 @@
  
        ath79_register_leds_gpio(-1, ARRAY_SIZE(ubnt_xm_leds_gpio),
                                 ubnt_xm_leds_gpio);
-@@ -79,9 +85,103 @@ static void __init ubnt_xm_init(void)
+@@ -79,9 +85,107 @@ static void __init ubnt_xm_init(void)
  
        ath79_register_m25p80(NULL);
        ap91_pci_init(eeprom, NULL);
 +
 +      ath79_register_leds_gpio(-1, ARRAY_SIZE(ubnt_unifi_leds_gpio),
 +                               ubnt_unifi_leds_gpio);
++
++      ath79_register_gpio_keys_polled(-1, UBNT_XM_KEYS_POLL_INTERVAL,
++                                        ARRAY_SIZE(ubnt_xm_gpio_keys),
++                                        ubnt_xm_gpio_keys);
 +}
 +
 +MIPS_MACHINE(ATH79_MACH_UBNT_UNIFI, "UBNT-UF", "Ubiquiti UniFi",