aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-08-03 17:09:39 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-08-03 17:09:39 +0000
commit8ddfb802945d753458abede663da6785e4f17fef (patch)
treec94f739923c865993c7c5c8bdd49eab67f1ae89a /package
parent2c425944b0a9f0b92f1c5a2e4112fee01650c988 (diff)
downloadupstream-8ddfb802945d753458abede663da6785e4f17fef.tar.gz
upstream-8ddfb802945d753458abede663da6785e4f17fef.tar.bz2
upstream-8ddfb802945d753458abede663da6785e4f17fef.zip
broadcom-diag: add gpio config for Linksys E4200v1
GPIO for Linksys E4200v1, tested and works. This closes #13454 and #13894 Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37666 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/kernel/broadcom-diag/src/diag.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/kernel/broadcom-diag/src/diag.c b/package/kernel/broadcom-diag/src/diag.c
index 58d6755389..e2c26c889f 100644
--- a/package/kernel/broadcom-diag/src/diag.c
+++ b/package/kernel/broadcom-diag/src/diag.c
@@ -91,6 +91,7 @@ enum {
E1000V1,
E3000V1,
E3200V1,
+ E4200V1,
/* ASUS */
WLHDD,
@@ -496,6 +497,16 @@ static struct platform_t __initdata platforms[] = {
{ .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 @@ static struct platform_t __init *platform_detect(void)
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: