GPIO for Linksys E4200v1, tested and works. This closes #13454 and #13894

Signed-off-by: Cezary Jackiewicz <cezary.jackiew...@gmail.com>
--- 

Index: package/kernel/broadcom-diag/src/diag.c
===================================================================
--- package/kernel/broadcom-diag/src/diag.c     (revision 37665)
+++ package/kernel/broadcom-diag/src/diag.c     (working copy)
@@ -91,6 +91,7 @@
        E1000V1,
        E3000V1,
        E3200V1,
+       E4200V1,
 
        /* ASUS */
        WLHDD,
@@ -496,6 +497,16 @@
                        { .name = "power",      .gpio = 1 << 3, .polarity = 
REVERSE },  /* Power LED */
                },
        },
+       [E4200V1] = {
+               .name           = "Linksys E4200 V1",
+               .buttons        = {
+                       { .name = "reset",      .gpio = 1 << 6 },
+                       { .name = "wps",        .gpio = 1 << 4 },
+               },
+               .leds   = {
+                       { .name = "power",      .gpio = 1 << 5, .polarity = 
REVERSE },
+               },
+       },
        /* Asus */
        [WLHDD] = {
                .name           = "ASUS WL-HDD",
@@ -1348,6 +1359,8 @@
                return &platforms[E3000V1];
        case BCM47XX_BOARD_LINKSYS_E3200V1:
                return &platforms[E3200V1];
+       case BCM47XX_BOARD_LINKSYS_E4200V1:
+               return &platforms[E4200V1];
        case BCM47XX_BOARD_LINKSYS_WRT150NV1:
                return &platforms[WRT150NV1];
        case BCM47XX_BOARD_LINKSYS_WRT150NV11:


-- 
Pozdrawiam,
 Cezary Jackiewicz
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to