aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-12-24 10:58:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-12-24 10:58:09 +0000
commit37216e75b4ac3dc9b5ad2f22d602b4966656319a (patch)
tree21eb640da137d44e84e0d888b86f40b7679bddfc /package/broadcom-diag
parentb97c4008bd4abe67aa135349ce879147098346bd (diff)
downloadupstream-37216e75b4ac3dc9b5ad2f22d602b4966656319a.tar.gz
upstream-37216e75b4ac3dc9b5ad2f22d602b4966656319a.tar.bz2
upstream-37216e75b4ac3dc9b5ad2f22d602b4966656319a.zip
add WRT300N v1.1 support (patch from #6379)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18921 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r--package/broadcom-diag/src/diag.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 89af0f7fc0..0b59ab12cf 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -61,6 +61,7 @@ enum {
WRTSL54GS,
WRT54G3G,
WRT160N,
+ WRT300NV11,
WRT350N,
WRT600N,
WRT600NV11,
@@ -255,6 +256,19 @@ static struct platform_t __initdata platforms[] = {
{ .name = "ses_orange", .gpio = 1 << 3, .polarity = REVERSE },
},
},
+ [WRT300NV11] = {
+ .name = "Linksys WRT300N V1.1",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 6 }, // "Reset" on back panel
+ { .name = "ses", .gpio = 1 << 4 }, // "Reserved" on top panel
+ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 1, .polarity = NORMAL }, // "Power"
+ { .name = "ses_amber", .gpio = 1 << 3, .polarity = REVERSE }, // "Security" Amber
+ { .name = "ses_green", .gpio = 1 << 5, .polarity = REVERSE }, // "Security" Green
+ },
+ .platform_init = bcm57xx_init,
+ },
[WRT350N] = {
.name = "Linksys WRT350N",
.buttons = {
@@ -886,6 +900,9 @@ static struct platform_t __init *platform_detect(void)
if (startswith(getvar("pmon_ver"), "CFE")) {
/* CFE based - newer hardware */
if (!strcmp(boardnum, "42")) { /* Linksys */
+ if (!strcmp(boardtype, "0x478") && !strcmp(getvar("boot_hw_model"), "WRT300N") && !strcmp(getvar("boot_hw_ver"), "1.1"))
+ return &platforms[WRT300NV11];
+
if (!strcmp(boardtype, "0x478") && !strcmp(getvar("cardbus"), "1"))
return &platforms[WRT350N];