aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-12-19 06:40:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-12-19 06:40:32 +0000
commite6c48573c5c99d377cd2a7e22462d406719dfa5d (patch)
tree45c038e9718ff2c22e39cd50bcecfe9ee54b1c33
parent4c5d5d43079bd56aa97623955b859c37f2c288ea (diff)
downloadupstream-e6c48573c5c99d377cd2a7e22462d406719dfa5d.tar.gz
upstream-e6c48573c5c99d377cd2a7e22462d406719dfa5d.tar.bz2
upstream-e6c48573c5c99d377cd2a7e22462d406719dfa5d.zip
add hardware detection for dell truemobile 2300
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5854 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/broadcom-diag/src/diag.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index f1c478510d..88881b9501 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -393,7 +393,8 @@ static struct platform_t __initdata platforms[] = {
{ .name = "reset", .gpio = 1 << 0 },
},
.leds = {
- { .name = "diag", .gpio = 1 << 7, .polarity = REVERSE },
+ { .name = "wlan", .gpio = 1 << 6, .polarity = REVERSE },
+ { .name = "power", .gpio = 1 << 7, .polarity = REVERSE },
},
},
/* Motorola */
@@ -502,6 +503,11 @@ static struct platform_t __init *platform_detect(void)
if (!strcmp(boardnum, "10496"))
return &platforms[USR5461];
} else { /* PMON based - old stuff */
+
+ /* Dell TrueMobile 2300 */
+ if (!strcmp(getvar("ModelId"),"WX-5565"))
+ return &platforms[TM2300];
+
if ((simple_strtoul(getvar("GemtekPmonVer"), NULL, 0) == 9) &&
(simple_strtoul(getvar("et0phyaddr"), NULL, 0) == 30)) {
if (!strncmp(getvar("ModelId"),"WE800G", 6))