Added support for 2.6.27 kernel
[openwrt.git] / package / broadcom-diag / src / diag.c
index 8f2a0c1..5ffa68f 100644 (file)
@@ -67,6 +67,7 @@ enum {
        /* ASUS */
        WLHDD,
        WL300G,
        /* ASUS */
        WLHDD,
        WL300G,
+       WL320GE,
        WL500G,
        WL500GD,
        WL500GP,
        WL500G,
        WL500GD,
        WL500GP,
@@ -295,6 +296,17 @@ static struct platform_t __initdata platforms[] = {
                        { .name = "power",      .gpio = 1 << 0, .polarity = REVERSE },
                },
        },
                        { .name = "power",      .gpio = 1 << 0, .polarity = REVERSE },
                },
        },
+       [WL320GE] = {
+               .name           = "ASUS WL-320gE/WL-320gP",
+               .buttons        = {
+                       { .name = "reset",      .gpio = 1 << 6 },
+               },
+               .leds           = {
+                       { .name = "wlan",       .gpio = 1 << 0, .polarity = REVERSE },
+                       { .name = "power",      .gpio = 1 << 2, .polarity = REVERSE },
+                       { .name = "link",       .gpio = 1 << 11, .polarity = REVERSE },
+               },
+       },
        [WL500G] = {
                .name           = "ASUS WL-500g",
                .buttons        = {
        [WL500G] = {
                .name           = "ASUS WL-500g",
                .buttons        = {
@@ -825,6 +837,8 @@ static struct platform_t __init *platform_detect(void)
                                return &platforms[WL500GP];
                        else if (!strcmp(boardtype,"0x0472"))
                                return &platforms[WL500W];
                                return &platforms[WL500GP];
                        else if (!strcmp(boardtype,"0x0472"))
                                return &platforms[WL500W];
+                       else if (!strcmp(boardtype,"0x467"))
+                               return &platforms[WL320GE];
                        else
                                return &platforms[WL500GD];
                }
                        else
                                return &platforms[WL500GD];
                }
@@ -1087,6 +1101,7 @@ static void register_leds(struct led_t *l)
        gpio_outen(mask, oe_mask);
        gpio_control(mask, 0);
        gpio_out(mask, val);
        gpio_outen(mask, oe_mask);
        gpio_control(mask, 0);
        gpio_out(mask, val);
+       gpio_intmask(mask, 0);
 }
 
 static void unregister_leds(struct led_t *l)
 }
 
 static void unregister_leds(struct led_t *l)
This page took 0.023987 seconds and 4 git commands to generate.