ar71xx: add support for TP-Link TL-WA855RE v1
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-wndap360.c
index 5b4b7b066cabeda0eff2fef0dfbf537baa4133b1..eae1c383ee3aff9f2e01b11fa5a52e789510ab81 100644 (file)
@@ -28,9 +28,7 @@
 #define WNDAP360_GPIO_LED_POWER_GREEN          2
 
 /* Reset button - next to the power connector */
-#define WNDAP360_GPIO_BTN_RESET                3
-/* WPS button - next to a led on right */
-#define WNDAP360_GPIO_BTN_WPS          8
+#define WNDAP360_GPIO_BTN_RESET                        8
 
 #define WNDAP360_KEYS_POLL_INTERVAL            20      /* msecs */
 #define WNDAP360_KEYS_DEBOUNCE_INTERVAL        (3 * WNDAP360_KEYS_POLL_INTERVAL)
  */
 static struct gpio_led wndap360_leds_gpio[] __initdata = {
        {
-               .name           = "wndap360:green:power",
+               .name           = "netgear:green:power",
                .gpio           = WNDAP360_GPIO_LED_POWER_GREEN,
                .active_low     = 1,
        }, {
-               .name           = "wndap360:orange:power",
+               .name           = "netgear:orange:power",
                .gpio           = WNDAP360_GPIO_LED_POWER_ORANGE,
                .active_low     = 1,
         }
@@ -95,10 +93,13 @@ static void __init wndap360_setup(void)
                                         ARRAY_SIZE(wndap360_gpio_keys),
                                         wndap360_gpio_keys);
 
+       ap9x_pci_setup_wmac_led_pin(0, 5);
+       ap9x_pci_setup_wmac_led_pin(1, 5);
+
        ap94_pci_init(art + WNDAP360_CALDATA0_OFFSET,
                      art + WNDAP360_WMAC0_MAC_OFFSET,
                      art + WNDAP360_CALDATA1_OFFSET,
                      art + WNDAP360_WMAC1_MAC_OFFSET);
 }
 
-MIPS_MACHINE(ATH79_MACH_WNDAP360, "WNDAP360", "Netgear WNDAP360", wndap360_setup);
+MIPS_MACHINE(ATH79_MACH_WNDAP360, "WNDAP360", "NETGEAR WNDAP360", wndap360_setup);