add buffalo whr2-a54g54 information to diag
authorFelix Fietkau <nbd@openwrt.org>
Wed, 1 Nov 2006 15:04:58 +0000 (15:04 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 1 Nov 2006 15:04:58 +0000 (15:04 +0000)
SVN-Revision: 5374

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

index 5c8d0700450c227c0f4ba2903b15eea86825f91f..aab8e00154315996a2dd55d237403cb8e363c4b1 100644 (file)
@@ -104,6 +104,7 @@ enum {
        WBR2_G54,
        WHR_G54S,
        WHR_HP_G54,
+       WHR2_A54G54,
        WLA2_G54L,
        BUFFALO_UNKNOWN,
        BUFFALO_UNKNOWN_4710,
@@ -295,6 +296,15 @@ static struct platform_t __init platforms[] = {
                        { .name = "ses",        .gpio = 1 << 6, .polarity = REVERSE },
                },
        },
+       [WHR2_A54G54] = {
+               .name           = "Buffalo WHR2-A54G54",
+               .buttons        = {
+                       { .name = "reset",      .gpio = 1 << 4 },
+               },
+               .leds           = {
+                       { .name = "diag",       .gpio = 1 << 7, .polarity = REVERSE },
+               },
+       },
        [WLA2_G54L] = {
                .name           = "Buffalo WLA2-G54L",
                /* FIXME: verify */
@@ -490,6 +500,8 @@ static struct platform_t __init *platform_detect(void)
                        return &platforms[WHR_HP_G54];
                if (!strcmp(buf, "30182"))
                        return &platforms[WHR_G54S];
+               if (!strcmp(buf, "290441dd"))
+                       return &platforms[WHR2_A54G54];
        }
 
        if (buf || !strcmp(boardnum, "00")) {/* probably buffalo */