summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-02-28 00:01:41 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-02-28 00:01:41 +0000
commitab94b8b851e1ba5a315d340c59be864b1521f397 (patch)
treee0c4e4f96580da5618a4a65a5cce9423f992fcbf /package
parentf889a9c250e02ea2b4cb8cc8a6641603d89f23f5 (diff)
add wl-500w diag support (untested, based on patch from #1298)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6416 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/broadcom-diag/src/diag.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 4dcc0bf15..c6ce85bca 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -62,6 +62,7 @@ enum {
WL500G,
WL500GD,
WL500GP,
+ WL500W,
ASUS_4702,
WL700GE,
@@ -250,6 +251,16 @@ static struct platform_t __initdata platforms[] = {
{ .name = "power", .gpio = 1 << 1, .polarity = REVERSE },
},
},
+ [WL500W] = {
+ .name = "ASUS WL-500W",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 6 },
+ { .name = "ses", .gpio = 1 << 7 },
+ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 5, .polarity = REVERSE },
+ },
+ },
[ASUS_4702] = {
.name = "ASUS (unknown, BCM4702)",
.buttons = {
@@ -535,6 +546,8 @@ static struct platform_t __init *platform_detect(void)
if (!strcmp(boardnum, "45")) { /* ASUS */
if (!strcmp(boardtype,"0x042f"))
return &platforms[WL500GP];
+ else if (!strcmp(boardtype,"0x0472"))
+ return &platforms[WL500W];
else
return &platforms[WL500GD];
}