Update motorola 850 leds (please verify!) and added placeholder for belkin
authorMike Baker <mbm@openwrt.org>
Tue, 31 Oct 2006 23:07:22 +0000 (23:07 +0000)
committerMike Baker <mbm@openwrt.org>
Tue, 31 Oct 2006 23:07:22 +0000 (23:07 +0000)
SVN-Revision: 5369

openwrt/target/linux/package/diag/src/diag.c

index 669c12f03e3439f5e7e3c47ee25d64f6510be0a8..eeaa35aa14b8c4deb5fca1fa13d45572057738f6 100644 (file)
@@ -121,6 +121,9 @@ enum {
        /* Motorola */
        WR850GV1,
        WR850GV2,
+
+       /* Belkin */
+       BELKIN_UNKNOWN,
 };
 
 static struct platform_t __init platforms[] = {
@@ -370,9 +373,11 @@ static struct platform_t __init platforms[] = {
                        { .name = "reset",      .gpio = 1 << 0 },
                },
                .leds           = {
+                       { .name = "power",      .gpio = 1 << 4, .polarity = NORMAL },
                        { .name = "diag",       .gpio = 1 << 3, .polarity = REVERSE },
-                       { .name = "wlan_red",   .gpio = 1 << 5, .polarity = NORMAL },
-                       { .name = "wlan_green", .gpio = 1 << 7, .polarity = NORMAL },
+                       { .name = "modem",      .gpio = 1 << 6, .polarity = NORMAL },
+                       { .name = "wlan_red",   .gpio = 1 << 5, .polarity = REVERSE },
+                       { .name = "wlan_green", .gpio = 1 << 7, .polarity = REVERSE },
                },
        },
        [WR850GV2] = {
@@ -382,8 +387,21 @@ static struct platform_t __init platforms[] = {
                },
                .leds           = {
                        { .name = "diag",       .gpio = 1 << 1, .polarity = REVERSE },
-                       { .name = "wlan",       .gpio = 1 << 0, .polarity = REVERSE },
-                       { .name = "modem",      .gpio = 1 << 7, .polarity = NORMAL },
+                       { .name = "wlan",       .gpio = 1 << 0, .polarity = NORMAL },
+                       { .name = "modem_green",.gpio = 1 << 6, .polarity = REVERSE },
+                       { .name = "modem_red",  .gpio = 1 << 7, .polarity = REVERSE },
+               },
+       /* Belkin */
+       [BELKIN_UNKNOWN] = {
+               .name           = "Belkin (unknown)"
+               /* FIXME: verify & add detection */
+               .buttons        = {
+                       { .name = "reset",      .gpio = 1 << 7 },
+               },
+               .leds           = {
+                       { .name = "power",      .gpio = 1 << 5, .polarity = NORMAL },
+                       { .name = "wlan",       .gpio = 1 << 3, .polarity = NORMAL },
+                       { .name = "connected",  .gpio = 1 << 0, .polarity = NORMAL },
                },
        },
 };