This patch gives you control of the LEDs: PWR, USB, SES 2.4Ghz, SES 5.6Ghz -
Both Amber & Green on the SES

 

I don't know if my email client will mess this up or anything or if I'm
doing it right my first submission anywhere of any kind of patch.

So here is a link to download if you wish and for some reason my email
client messes it up somehow. 

http://downloads.zeropain.com/wrt/openwrt/devel/patches/broadcom-diag-wrt600
n.patch

 

Signed-off-by: Steven Norder [EMAIL PROTECTED]

 

 

 

Index: package/broadcom-diag/src/diag.c

===================================================================

--- package/broadcom-diag/src/diag.c   (revision 11549)

+++ package/broadcom-diag/src/diag.c                (working copy)

@@ -61,6 +61,8 @@

                WRTSL54GS,

                WRT54G3G,

                WRT350N,

+             WRT600N,

+             WRT600NV11,

 

                /* ASUS */

                WLHDD,

@@ -240,6 +242,39 @@

                                },

                                .platform_init = bcm57xx_init,

                },

+        [WRT600N] = {

+                .name           = "Linksys WRT600N",

+                .buttons        = {

+                        { .name = "reset",      .gpio = 1 << 6 },

+                        { .name = "ses",        .gpio = 1 << 7 },

+                },

+                .leds           = {

+                        { .name = "power",              .gpio = 1 << 2,
.polarity = REVERSE }, // Power LED

+                        { .name = "usb",                .gpio = 1 << 3,
.polarity = REVERSE }, // USB LED

+                        { .name = "wl0_ses_amber",      .gpio = 1 << 8,
.polarity = REVERSE }, // 2.4Ghz LED Amber

+                        { .name = "wl0_ses_green",      .gpio = 1 << 9,
.polarity = REVERSE }, // 2.4Ghz LED Green

+                        { .name = "wl1_ses_amber",      .gpio = 1 << 10,
.polarity = REVERSE }, // 5.6Ghz LED Amber

+                        { .name = "wl1_ses_green",      .gpio = 1 << 11,
.polarity = REVERSE }, // 5.6Ghz LED Green

+                },

+                .platform_init = bcm57xx_init,

+        },

+        [WRT600NV11] = {

+                .name           = "Linksys WRT600N V1.1",

+                .buttons        = {

+                        { .name = "reset",      .gpio = 1 << 6 },

+                        { .name = "ses",        .gpio = 1 << 7 },

+                },

+                .leds           = {

+                        { .name = "power",
.gpio = 1 << 2,  .polarity = REVERSE }, // Power LED

+                                             { .name = "usb",
.gpio = 1 << 3,  .polarity = REVERSE }, // USB LED

+                                             { .name = "wl0_ses_amber",
.gpio = 1 << 8,  .polarity = REVERSE }, // 2.4Ghz LED Amber

+                        { .name = "wl0_ses_green",             .gpio = 1 <<
9,  .polarity = REVERSE }, // 2.4Ghz LED Green

+                        { .name = "wl1_ses_amber",      .gpio = 1 << 10,
.polarity = REVERSE }, // 5.6Ghz LED Amber

+                        { .name = "wl1_ses_green",      .gpio = 1 << 11,
.polarity = REVERSE }, // 5.6Ghz LED Green

+

+                },

+                .platform_init = bcm57xx_init,

+        },

                /* Asus */

                [WLHDD] = {

                                .name                   = "ASUS WL-HDD",

@@ -746,6 +781,14 @@

                boardnum = getvar("boardnum");

                boardtype = getvar("boardtype");

 

+             if (!strcmp(boardnum, "20070615")) { /* Linksys WRT600N
v1/V1.1 */

+             if (!strcmp(boardtype, "0x478") && !strcmp(getvar("cardbus"),
"0") && !strcmp(getvar("switch_type"),"BCM5395"))

+                        return &platforms[WRT600NV11];

+                             

+                             if (!strcmp(boardtype, "0x478") &&
!strcmp(getvar("cardbus"), "0"))

+                        return &platforms[WRT600N];

+        }

+

                if (startswith(getvar("pmon_ver"), "CFE")) {

                                /* CFE based - newer hardware */

                                if (!strcmp(boardnum, "42")) { /* Linksys */

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to