aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-24 02:39:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-24 02:39:41 +0000
commit1df3de900cb4bc97bc629793986f495b3c95bb9d (patch)
treedb86214db26a25070ac8951db8590e43e53b2777
parentdca463db2bd3f0d145d44dca7d80e44b65b4c1a7 (diff)
downloadupstream-1df3de900cb4bc97bc629793986f495b3c95bb9d.tar.gz
upstream-1df3de900cb4bc97bc629793986f495b3c95bb9d.tar.bz2
upstream-1df3de900cb4bc97bc629793986f495b3c95bb9d.zip
fix gpios for wzr-rs-g54, add support for the wzr-rs-g54hp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5636 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/broadcom-diag/src/diag.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index c85401f7f9..e17f255e5b 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -70,6 +70,7 @@ enum {
WHR2_A54G54,
WLA2_G54L,
WZR_RS_G54,
+ WZR_RS_G54HP,
BUFFALO_UNKNOWN,
BUFFALO_UNKNOWN_4710,
@@ -284,10 +285,24 @@ static struct platform_t __initdata platforms[] = {
.name = "Buffalo WZR-RS-G54",
.buttons = {
{ .name = "ses", .gpio = 1 << 0 },
- { .name = "reset", .gpio = 1 << 7 },
+ { .name = "reset", .gpio = 1 << 4 },
},
.leds = {
- { .name = "diag", .gpio = 1 << 1, .polarity = REVERSE },
+ { .name = "diag", .gpio = 1 << 7, .polarity = REVERSE },
+ { .name = "ses", .gpio = 1 << 6, .polarity = REVERSE },
+ { .name = "vpn", .gpio = 1 << 1, .polarity = REVERSE },
+ },
+ },
+ [WZR_RS_G54HP] = {
+ .name = "Buffalo WZR-RS-G54HP",
+ .buttons = {
+ { .name = "ses", .gpio = 1 << 0 },
+ { .name = "reset", .gpio = 1 << 4 },
+ },
+ .leds = {
+ { .name = "diag", .gpio = 1 << 7, .polarity = REVERSE },
+ { .name = "ses", .gpio = 1 << 6, .polarity = REVERSE },
+ { .name = "vpn", .gpio = 1 << 1, .polarity = REVERSE },
},
},
[BUFFALO_UNKNOWN] = {
@@ -476,6 +491,8 @@ static struct platform_t __init *platform_detect(void)
return &platforms[WHR2_A54G54];
if (!strcmp(buf, "30083"))
return &platforms[WZR_RS_G54];
+ if (!strcmp(buf, "30103"))
+ return &platforms[WZR_RS_G54HP];
}
if (buf || !strcmp(boardnum, "00")) {/* probably buffalo */