This patch adds support for reset button to Ubiquiti UniFi AP.
Signed-off-by: Rocco Folino <[email protected]>
--- a/arch/mips/ath79/mach-ubnt-xm.c
+++ b/arch/mips/ath79/mach-ubnt-xm.c
@@ -181,6 +181,10 @@ static void __init ubnt_unifi_setup(void
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",
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel