aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag/src
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-08-04 09:04:55 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-08-04 09:04:55 +0000
commit4be0c0cda136edec07191bec3c08fafae5641bed (patch)
treebbf001789c7d8198f46ad04b3406e4991ab7dbea /package/broadcom-diag/src
parent0a55a0a0edddf5adbeaf89b9f9ed7588ecf81162 (diff)
downloadupstream-4be0c0cda136edec07191bec3c08fafae5641bed.tar.gz
upstream-4be0c0cda136edec07191bec3c08fafae5641bed.tar.bz2
upstream-4be0c0cda136edec07191bec3c08fafae5641bed.zip
Add support for the D-Link DWL-3150
SVN-Revision: 8335
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r--package/broadcom-diag/src/diag.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 6a70ed002c..2b1061db08 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -113,6 +113,7 @@ enum {
/* D-Link */
DIR130,
DIR330,
+ DWL3150,
};
static void __init bcm4780_init(void) {
@@ -579,6 +580,16 @@ static struct platform_t __initdata platforms[] = {
{ .name = "blue", .gpio = 1 << 6},
},
},
+ [DWL3150] = {
+ .name = "D-Link DWL-3150",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 7},
+ },
+ .leds = {
+ { .name = "diag", .gpio = 1 << 2},
+ { .name = "status", .gpio = 1 << 1},
+ },
+ },
};
static struct platform_t __init *platform_detect(void)
@@ -664,7 +675,7 @@ static struct platform_t __init *platform_detect(void)
return &platforms[WL500GD];
}
- if (!strcmp(boardnum, "10496"))
+ if (!strcmp(boardnum, "10496") && !strcmp(boardtype, "0x467"))
return &platforms[USR5461];
} else { /* PMON based - old stuff */
@@ -715,6 +726,9 @@ static struct platform_t __init *platform_detect(void)
if (!strncmp(boardnum, "04FN52", 6)) /* SimpleTech SimpleShare */
return &platforms[STI_NAS];
+ if (!strcmp(getvar("boardnum"), "10") && !strcmp(getvar("boardrev"), "0x13")) /* D-Link DWL-3150 */
+ return &platforms[DWL3150];
+
/* not found */
return NULL;
}