summaryrefslogtreecommitdiff
path: root/package/broadcom-diag/src/diag.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2010-08-06 20:21:32 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2010-08-06 20:21:32 +0000
commit7640f8904590b4810ef7a104fd69fc5b35caee4e (patch)
tree8d7efe4112b89513a927a527cdfe8d5c42a824a1 /package/broadcom-diag/src/diag.c
parent419128775a76ef97e344462212b1a646a07e08a5 (diff)
downloadmtk-20170518-7640f8904590b4810ef7a104fd69fc5b35caee4e.zip
mtk-20170518-7640f8904590b4810ef7a104fd69fc5b35caee4e.tar.gz
mtk-20170518-7640f8904590b4810ef7a104fd69fc5b35caee4e.tar.bz2
brcm47xx: Add new image generation and fix leds/reset button on WNR834B V2
Thank you realopty for the patch. tools/firmware-utils/src/mkchkimg.c is from http://www.myopenrouter.com/download/10611/mkchkimg/ This closes #7702. SVN-Revision: 22516
Diffstat (limited to 'package/broadcom-diag/src/diag.c')
-rw-r--r--package/broadcom-diag/src/diag.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 6a95a8a..620f291 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -110,6 +110,7 @@ enum {
/* Netgear */
WGT634U,
+ WNR834BV2,
/* Trendware */
TEW411BRPP,
@@ -754,6 +755,17 @@ static struct platform_t __initdata platforms[] = {
{ .name = "power", .gpio = 1 << 3, .polarity = NORMAL },
},
},
+ [WNR834BV2] = {
+ .name = "Netgear WNR834B V2",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 6 },
+ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 2, .polarity = NORMAL },
+ { .name = "diag", .gpio = 1 << 3, .polarity = NORMAL },
+ { .name = "connected", .gpio = 1 << 7, .polarity = NORMAL },
+ },
+ },
/* Trendware */
[TEW411BRPP] = {
.name = "Trendware TEW411BRP+",
@@ -1035,6 +1047,12 @@ 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];
+ }
+
} else { /* PMON based - old stuff */
if ((simple_strtoul(getvar("GemtekPmonVer"), NULL, 0) == 9) &&
(simple_strtoul(getvar("et0phyaddr"), NULL, 0) == 30)) {