diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-02-28 00:01:41 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-02-28 00:01:41 +0000 |
commit | 89b89ef77d578ed227fe0c127c9e332eafaf9f78 (patch) | |
tree | f784819320ccc61f4db591c928deee5fff5b411a /package | |
parent | f1a91c2f71dc557d8e7cf119dea99a1bb73e4f3d (diff) | |
download | mtk-20170518-89b89ef77d578ed227fe0c127c9e332eafaf9f78.zip mtk-20170518-89b89ef77d578ed227fe0c127c9e332eafaf9f78.tar.gz mtk-20170518-89b89ef77d578ed227fe0c127c9e332eafaf9f78.tar.bz2 |
add wl-500w diag support (untested, based on patch from #1298)
SVN-Revision: 6416
Diffstat (limited to 'package')
-rw-r--r-- | package/broadcom-diag/src/diag.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 4dcc0bf..c6ce85b 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]; } |