aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-07-27 13:00:23 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-07-27 13:00:23 +0000
commit31fbb89034e3898dbeb8e85662bef9503f76fd65 (patch)
tree95f1cf0da0208d7a5472f2b7bdffd3b81c57df27 /package/broadcom-diag
parent912c350689f328034f1d1400566c3e5376a99f0a (diff)
downloadupstream-31fbb89034e3898dbeb8e85662bef9503f76fd65.tar.gz
upstream-31fbb89034e3898dbeb8e85662bef9503f76fd65.tar.bz2
upstream-31fbb89034e3898dbeb8e85662bef9503f76fd65.zip
add support for the WRT160N, patch from Westley Paynter
SVN-Revision: 17031
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r--package/broadcom-diag/src/diag.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 834a83abdc..ca08e46fd8 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -60,6 +60,7 @@ enum {
WRT54G,
WRTSL54GS,
WRT54G3G,
+ WRT160N,
WRT350N,
WRT600N,
WRT600NV11,
@@ -241,6 +242,18 @@ static struct platform_t __initdata platforms[] = {
{ .name = "3g_blink", .gpio = 1 << 5, .polarity = NORMAL },
},
},
+ [WRT160N] = {
+ .name = "Linksys WRT160N",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 6 },
+ { .name = "ses", .gpio = 1 << 4 },
+ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 1, .polarity = NORMAL },
+ { .name = "ses_blue", .gpio = 1 << 5, .polarity = REVERSE },
+ { .name = "ses_orange", .gpio = 1 << 3, .polarity = REVERSE },
+ },
+ },
[WRT350N] = {
.name = "Linksys WRT350N",
.buttons = {
@@ -862,6 +875,9 @@ static struct platform_t __init *platform_detect(void)
if (!strcmp(getvar("et1phyaddr"),"5") && !strcmp(getvar("et1mdcport"), "1"))
return &platforms[WRTSL54GS];
+ if (!strcmp(boardtype, "0x0472"))
+ return &platforms[WRT160N];
+
/* default to WRT54G */
return &platforms[WRT54G];
}