diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-11-13 07:39:29 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-11-13 07:39:29 +0000 |
commit | bd9bd18f45885fa47e6244a3ef9d006dd8efc5f3 (patch) | |
tree | 3d8302fdb2bad1f1f5a1825ed0897b7133efd14b | |
parent | 87ed4d71850255931c98dff43f97e5cf0f0d6442 (diff) | |
download | upstream-bd9bd18f45885fa47e6244a3ef9d006dd8efc5f3.tar.gz upstream-bd9bd18f45885fa47e6244a3ef9d006dd8efc5f3.tar.bz2 upstream-bd9bd18f45885fa47e6244a3ef9d006dd8efc5f3.zip |
Add detection support for Buffalo WHR-G125 from #2611
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9548 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/broadcom-diag/src/diag.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 35737b002f..c7b3ead363 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -74,6 +74,7 @@ enum { WBR2_G54, WHR_G54S, WHR_HP_G54, + WHR_G125, WHR2_A54G54, WLA2_G54L, WZR_G300N, @@ -343,6 +344,21 @@ static struct platform_t __initdata platforms[] = { { .name = "wlan", .gpio = 1 << 2, .polarity = REVERSE }, }, }, + [WHR_G125] = { + .name = "Buffalo WHR-G125", + .buttons = { + { .name = "reset", .gpio = 1 << 4 }, + { .name = "bridge", .gpio = 1 << 5 }, + { .name = "ses", .gpio = 1 << 0 }, + }, + .leds = { + { .name = "diag", .gpio = 1 << 7, .polarity = REVERSE }, + { .name = "internal", .gpio = 1 << 3, .polarity = REVERSE }, + { .name = "bridge", .gpio = 1 << 1, .polarity = REVERSE }, + { .name = "ses", .gpio = 1 << 6, .polarity = REVERSE }, + { .name = "wlan", .gpio = 1 << 2, .polarity = REVERSE }, + }, + }, [WHR2_A54G54] = { .name = "Buffalo WHR2-A54G54", .buttons = { @@ -634,6 +650,8 @@ static struct platform_t __init *platform_detect(void) return &platforms[WLA2_G54L]; if (!strcmp(buf, "30189")) return &platforms[WHR_HP_G54]; + if (!strcmp(buf, "32093")) + return &platforms[WHR_G125]; if (!strcmp(buf, "30182")) return &platforms[WHR_G54S]; if (!strcmp(buf, "290441dd")) |