ar71xx: ubnt unifi outdoor register gpio button
authorGabor Juhos <juhosg@openwrt.org>
Mon, 5 Aug 2013 09:09:37 +0000 (09:09 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 5 Aug 2013 09:09:37 +0000 (09:09 +0000)
This patch register the gpio buttons for the Ubiquiti UniFi Outdoor.

Signed-off-by: Rocco Folino <lordzen@autistici.org>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37695

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

index 2e8fbdc93fad75bb2e7222183a1a39a7d87a394b..d8d48f58e0609e25c4707f097086c31e6d4a52d9 100644 (file)
@@ -62,7 +62,7 @@
  
        ath79_register_leds_gpio(-1, ARRAY_SIZE(ubnt_xm_leds_gpio),
                                 ubnt_xm_leds_gpio);
-@@ -79,9 +89,242 @@ static void __init ubnt_xm_init(void)
+@@ -79,9 +89,246 @@ 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_outdoor_leds_gpio),
 +                               ubnt_unifi_outdoor_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_OUTDOOR, "UBNT-U20",