add diag support for the WRT350N
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 14 Dec 2006 07:59:45 +0000 (07:59 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 14 Dec 2006 07:59:45 +0000 (07:59 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5785 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/broadcom-diag/src/diag.c

index bb25d57..92d660e 100644 (file)
@@ -54,6 +54,7 @@ enum {
        WRT54G,
        WRTSL54GS,
        WRT54G3G,
        WRT54G,
        WRTSL54GS,
        WRT54G3G,
+       WRT350N,
        
        /* ASUS */
        WLHDD,
        
        /* ASUS */
        WLHDD,
@@ -92,6 +93,9 @@ enum {
        /* Belkin */
        BELKIN_UNKNOWN,
 
        /* Belkin */
        BELKIN_UNKNOWN,
 
+       /* Netgear */
+       WGT634U,
+
        /* Trendware */
        TEW411BRPP,
 };
        /* Trendware */
        TEW411BRPP,
 };
@@ -171,6 +175,17 @@ static struct platform_t __initdata platforms[] = {
                        { .name = "3g_blink",   .gpio = 1 << 5, .polarity = NORMAL },
                },
        },
                        { .name = "3g_blink",   .gpio = 1 << 5, .polarity = NORMAL },
                },
        },
+       [WRT350N] = {
+               .name           = "Linksys WRT350N",
+               .buttons        = {
+                       { .name = "reset",      .gpio = 1 << 6 },
+                       { .name = "ses",        .gpio = 1 << 8 },
+               },
+               .leds           = {
+                       { .name = "power",      .gpio = 1 << 1, .polarity = NORMAL },
+                       { .name = "ses",        .gpio = 1 << 3, .polarity = REVERSE },
+               },
+       },
        /* Asus */
        [WLHDD] = {
                .name           = "ASUS WL-HDD",
        /* Asus */
        [WLHDD] = {
                .name           = "ASUS WL-HDD",
@@ -419,6 +434,16 @@ static struct platform_t __initdata platforms[] = {
                        { .name = "connected",  .gpio = 1 << 0, .polarity = NORMAL },
                },
        },
                        { .name = "connected",  .gpio = 1 << 0, .polarity = NORMAL },
                },
        },
+       /* Netgear */
+       [WGT634U] = {
+               .name           = "Netgear WGT634U",
+               .buttons        = {
+                       { .name = "reset",      .gpio = 1 << 2 },
+               },
+               .leds           = {
+                       { .name = "power",      .gpio = 1 << 3, .polarity = REVERSE },
+               },
+       },
        /* Trendware */
        [TEW411BRPP] = {
                .name           = "Trendware TEW411BRP+",
        /* Trendware */
        [TEW411BRPP] = {
                .name           = "Trendware TEW411BRP+",
@@ -442,6 +467,9 @@ static struct platform_t __init *platform_detect(void)
        if (strncmp(getvar("pmon_ver"), "CFE", 3) == 0) {
                /* CFE based - newer hardware */
                if (!strcmp(boardnum, "42")) { /* Linksys */
        if (strncmp(getvar("pmon_ver"), "CFE", 3) == 0) {
                /* CFE based - newer hardware */
                if (!strcmp(boardnum, "42")) { /* Linksys */
+                       if (!strcmp(boardtype, "0x478") && !strcmp(getvar("cardbus"), 1))
+                               return &platforms[WRT350N];
+
                        if (!strcmp(boardtype, "0x0101") && !strcmp(getvar("boot_ver"), "v3.6"))
                                return &platforms[WRT54G3G];
 
                        if (!strcmp(boardtype, "0x0101") && !strcmp(getvar("boot_ver"), "v3.6"))
                                return &platforms[WRT54G3G];
 
@@ -517,7 +545,6 @@ static struct platform_t __init *platform_detect(void)
                        return &platforms[BUFFALO_UNKNOWN];
        }
 
                        return &platforms[BUFFALO_UNKNOWN];
        }
 
-
        if (!strcmp(getvar("CFEver"), "MotoWRv203") ||
                !strcmp(getvar("MOTO_BOARD_TYPE"), "WR_FEM1")) {
 
        if (!strcmp(getvar("CFEver"), "MotoWRv203") ||
                !strcmp(getvar("MOTO_BOARD_TYPE"), "WR_FEM1")) {
 
This page took 0.034108 seconds and 4 git commands to generate.