add hardware detection for dell truemobile 2300
authorFelix Fietkau <nbd@openwrt.org>
Tue, 19 Dec 2006 06:40:32 +0000 (06:40 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 19 Dec 2006 06:40:32 +0000 (06:40 +0000)
SVN-Revision: 5854

package/broadcom-diag/src/diag.c

index f1c478510dafc69a38888e602ce6f893faa55f1d..88881b95012051c50fe7c9ffa769ad0aff2cddfb 100644 (file)
@@ -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))