diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-06-13 15:56:21 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-06-13 15:56:21 +0000 |
commit | 015b3fe0f00a1addae89598c6a43298fc7a6febe (patch) | |
tree | 623ddef617669e7c87ebb3dc08c3dea2705a6afb /package/broadcom-diag/src | |
parent | e4ff3fb845b90e09867bbdb99bed090c9b88bcf9 (diff) | |
download | upstream-015b3fe0f00a1addae89598c6a43298fc7a6febe.tar.gz upstream-015b3fe0f00a1addae89598c6a43298fc7a6febe.tar.bz2 upstream-015b3fe0f00a1addae89598c6a43298fc7a6febe.zip |
[package] recognize WAP54Gv2 and assigne LED and GPIOs (#5335)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16434 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r-- | package/broadcom-diag/src/diag.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index c8c0e34abe..4667591a16 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -54,6 +54,7 @@ module_param(gpiomask, int, 0644); enum { /* Linksys */ WAP54GV1, + WAP54GV2, WAP54GV3, WRT54GV1, WRT54G, @@ -166,6 +167,16 @@ static struct platform_t __initdata platforms[] = { { .name = "wlan", .gpio = 1 << 4 }, }, }, + [WAP54GV2] = { + .name = "Linksys WAP54G V2", + .buttons = { + { .name = "reset", .gpio = 1 << 0 }, + }, + .leds = { + { .name = "wlan", .gpio = 1 << 5, .polarity = REVERSE }, + /* GPIO 6 is b44 (eth0, LAN) PHY power */ + }, + }, [WAP54GV3] = { .name = "Linksys WAP54G V3", .buttons = { @@ -839,6 +850,8 @@ static struct platform_t __init *platform_detect(void) /* default to WRT54G */ return &platforms[WRT54G]; } + if (!strcmp(boardnum, "1024") && !strcmp(boardtype, "0x0446")) + return &platforms[WAP54GV2]; if (!strcmp(boardnum, "44") || !strcmp(boardnum, "44\r")) { if (!strcmp(boardtype,"0x0101") || !strcmp(boardtype, "0x0101\r")) |