summaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag/src
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-02-24 17:57:28 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-02-24 17:57:28 +0000
commit286276a34bd0bd644b114690bb28d5aa16ce1146 (patch)
treecb919aa2d3f51c4737feeaa05561b8ea01fea5e6 /package/broadcom-diag/src
parent57ac2a811391066691f1ab1d165f04d1646fa8f8 (diff)
broadcom-diag: add support for e3200 v1
Hex values in nvram seem to be uppercase on my e3200 device. Define one power led and two buttons (reset/wps). Signed-off-by: Tijs Van Buggenhout <tvb@able.be> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35766 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r--package/broadcom-diag/src/diag.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 774f0cefd..168f81d77 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -66,6 +66,7 @@ enum {
WRT610NV2,
E1000V1,
E3000V1,
+ E3200V1,
/* ASUS */
WLHDD,
@@ -457,6 +458,18 @@ static struct platform_t __initdata platforms[] = {
{ .name = "wlan", .gpio = 1 << 1, .polarity = NORMAL }, // Wireless LED
},
},
+ [E3200V1] = {
+ .name = "Linksys E3200 V1",
+ .buttons = {
+ /* { .name = "switch", .gpio = 1 << 4 },*/ /* nvram get gpio4=robo_reset */
+ { .name = "reset", .gpio = 1 << 5 }, /* nvram get reset_gpio=5 */
+ { .name = "wps", .gpio = 1 << 8 }, /* nvram get gpio8=wps_button */
+ /* { .name = "wombo", .gpio = 1 << 23 },*/ /* nvram get gpio23=wombo_reset - wireless on motherboard */
+ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 3, .polarity = REVERSE }, /* Power LED */
+ },
+ },
/* Asus */
[WLHDD] = {
.name = "ASUS WL-HDD",
@@ -1269,6 +1282,8 @@ static struct platform_t __init *platform_detect(void)
return &platforms[E1000V1];
case BCM47XX_BOARD_LINKSYS_E3000V1:
return &platforms[E3000V1];
+ case BCM47XX_BOARD_LINKSYS_E3200V1:
+ return &platforms[E3200V1];
case BCM47XX_BOARD_LINKSYS_WRT150NV1:
return &platforms[WRT150NV1];
case BCM47XX_BOARD_LINKSYS_WRT150NV11: