aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2011-04-08 19:22:09 +0000
committerHauke Mehrtens <hauke@openwrt.org>2011-04-08 19:22:09 +0000
commit3c7471989ad5df91977e97554f80e9f6fc66d540 (patch)
treef569af96558442a8f76a413cb4f90eeb1e1e6490 /package/broadcom-diag
parent34b4e616ae877e85d2a822b401c938152bcf9a19 (diff)
downloadmaster-187ad058-3c7471989ad5df91977e97554f80e9f6fc66d540.tar.gz
master-187ad058-3c7471989ad5df91977e97554f80e9f6fc66d540.tar.bz2
master-187ad058-3c7471989ad5df91977e97554f80e9f6fc66d540.zip
brcm47xx: add Netgear WNR834BV1
Thank you realopty for the patch. This closes #7702 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26537 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r--package/broadcom-diag/src/diag.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 55dfa757eb..00a72e9076 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -110,6 +110,7 @@ enum {
/* Netgear */
WGT634U,
+ WNR834BV1,
WNR834BV2,
/* Trendware */
@@ -758,8 +759,19 @@ static struct platform_t __initdata platforms[] = {
{ .name = "power", .gpio = 1 << 3, .polarity = NORMAL },
},
},
+ /* Netgear */
+ [WNR834BV1] = {
+ .name = "Netgear WNR834B V1",
+ .buttons = { /* TODO: add reset button and confirm LEDs - GPIO from dd-wrt */ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 4, .polarity = REVERSE },
+ { .name = "diag", .gpio = 1 << 5, .polarity = REVERSE },
+ { .name = "wlan", .gpio = 1 << 6, .polarity = REVERSE },
+ },
+ },
+ /* Netgear */
[WNR834BV2] = {
- .name = "Netgear WNR834B V2",
+ .name = "Netgear WNR834B V2",
.buttons = {
{ .name = "reset", .gpio = 1 << 6 },
},
@@ -1060,10 +1072,11 @@ static struct platform_t __init *platform_detect(void)
return &platforms[WDNetCenter];
}
- if ((!strcmp(boardnum, "08") || !strcmp(boardnum, "01")) &&
- !strcmp(boardtype,"0x0472") && !strcmp(getvar("cardbus"), "1")) { /* Netgear WNR834B V1 and V2*/
- /* TODO: Check for version. Default platform is V2 for now. */
- return &platforms[WNR834BV2];
+ if (!strcmp(boardtype,"0x0472") && !strcmp(getvar("cardbus"), "1")) { /* Netgear WNR834B V1 and V2*/
+ if (!strcmp(boardnum, "08") || !strcmp(boardnum, "8"))
+ return &platforms[WNR834BV1];
+ if (!strcmp(boardnum, "01") || !strcmp(boardnum, "1"))
+ return &platforms[WNR834BV2];
}
} else { /* PMON based - old stuff */