ar71xx: allow to use LAN LED on the TL-WA901N/ND boards
[openwrt.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-wzr-hp-g450h.c
index b06948a..03376bb 100644 (file)
@@ -82,6 +82,20 @@ static struct gpio_led wzrhpg450h_leds_gpio[] __initdata = {
        },
 };
 
+
+static struct gpio_led wzrhpg450h_wmac_leds_gpio[] = {
+       {
+               .name           = "buffalo:blue:movie_engine",
+               .gpio           = 13,
+               .active_low     = 1,
+       },
+       {
+               .name           = "buffalo:green:router",
+               .gpio           = 14,
+               .active_low     = 1,
+       },
+};
+
 static struct gpio_keys_button wzrhpg450h_gpio_keys[] __initdata = {
        {
                .desc           = "reset",
@@ -150,6 +164,9 @@ static void __init wzrhpg450h_init(void)
        gpio_direction_output(16, 1);
 
        ap91_pci_init(ee, NULL);
+       ap91_pci_setup_wmac_led_pin(15);
+       ap91_pci_setup_wmac_leds(wzrhpg450h_wmac_leds_gpio,
+                                ARRAY_SIZE(wzrhpg450h_wmac_leds_gpio));
 }
 
 MIPS_MACHINE(AR71XX_MACH_WZR_HP_G450H, "WZR-HP-G450H", "Buffalo WZR-HP-G450H",