diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-10-04 16:51:03 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-10-04 16:51:03 +0000 |
commit | 10f4e46cf966a2f1d03ab6c0ae7d103dd656b6b5 (patch) | |
tree | e361651f3d8ec746e0c683faf68d295da3bf16a7 /package/broadcom-diag | |
parent | 009e41906f494a0ea5ff0d212b318a291c0cd0b0 (diff) | |
download | mtk-20170518-10f4e46cf966a2f1d03ab6c0ae7d103dd656b6b5.zip mtk-20170518-10f4e46cf966a2f1d03ab6c0ae7d103dd656b6b5.tar.gz mtk-20170518-10f4e46cf966a2f1d03ab6c0ae7d103dd656b6b5.tar.bz2 |
Add proper LED support to broadcom-diag for the Asus WL-320gE/gP routers (#4062)
SVN-Revision: 12855
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r-- | package/broadcom-diag/src/diag.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index cde681a..5ffa68f 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -67,6 +67,7 @@ enum { /* ASUS */ WLHDD, WL300G, + WL320GE, WL500G, WL500GD, WL500GP, @@ -295,6 +296,17 @@ static struct platform_t __initdata platforms[] = { { .name = "power", .gpio = 1 << 0, .polarity = REVERSE }, }, }, + [WL320GE] = { + .name = "ASUS WL-320gE/WL-320gP", + .buttons = { + { .name = "reset", .gpio = 1 << 6 }, + }, + .leds = { + { .name = "wlan", .gpio = 1 << 0, .polarity = REVERSE }, + { .name = "power", .gpio = 1 << 2, .polarity = REVERSE }, + { .name = "link", .gpio = 1 << 11, .polarity = REVERSE }, + }, + }, [WL500G] = { .name = "ASUS WL-500g", .buttons = { @@ -825,6 +837,8 @@ static struct platform_t __init *platform_detect(void) return &platforms[WL500GP]; else if (!strcmp(boardtype,"0x0472")) return &platforms[WL500W]; + else if (!strcmp(boardtype,"0x467")) + return &platforms[WL320GE]; else return &platforms[WL500GD]; } |