From 0fddecce13b5766eb81467805829e488144170ef Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 1 Nov 2006 15:04:58 +0000 Subject: [PATCH] add buffalo whr2-a54g54 information to diag SVN-Revision: 5374 --- openwrt/target/linux/package/diag/src/diag.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/openwrt/target/linux/package/diag/src/diag.c b/openwrt/target/linux/package/diag/src/diag.c index 5c8d070045..aab8e00154 100644 --- a/openwrt/target/linux/package/diag/src/diag.c +++ b/openwrt/target/linux/package/diag/src/diag.c @@ -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 */ -- 2.30.2