diff options
author | Markus Wigge <markus@cultcom.de> | 2010-04-07 07:45:54 +0000 |
---|---|---|
committer | Markus Wigge <markus@cultcom.de> | 2010-04-07 07:45:54 +0000 |
commit | 8abc88276428afd28c5f73d2119256d7f7022828 (patch) | |
tree | 99ff8d835dc20545bbd5b23737ae6805d0600e5a /package/broadcom-diag/src | |
parent | 0424723f669a1ad5e9a0d1c6715bb32332cadfc4 (diff) | |
download | master-187ad058-8abc88276428afd28c5f73d2119256d7f7022828.tar.gz master-187ad058-8abc88276428afd28c5f73d2119256d7f7022828.tar.bz2 master-187ad058-8abc88276428afd28c5f73d2119256d7f7022828.zip |
added WRT54G3GV2-VF detection to broadcom-diag
+ diag now recognizes the router
+ basic LEDs work
- 3G LED for blink does not work as for the old version
so I removed it. Maybe some GPIO probing might help.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20737 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r-- | package/broadcom-diag/src/diag.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 7df009e7c0..0871a02a7a 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -60,6 +60,7 @@ enum { WRT54G, WRTSL54GS, WRT54G3G, + WRT54G3GV2_VF, WRT160N, WRT300NV11, WRT350N, @@ -271,6 +272,18 @@ static struct platform_t __initdata platforms[] = { { .name = "3g_blink", .gpio = 1 << 5, .polarity = NORMAL }, }, }, + [WRT54G3GV2_VF] = { + .name = "Linksys WRT54G3GV2-VF", + .buttons = { + { .name = "reset", .gpio = 1 << 6 }, + { .name = "3g", .gpio = 1 << 4 }, + }, + .leds = { + { .name = "power", .gpio = 1 << 1, .polarity = NORMAL }, + { .name = "3g_green", .gpio = 1 << 2, .polarity = NORMAL }, + { .name = "3g_blue", .gpio = 1 << 3, .polarity = NORMAL }, + }, + }, [WRT160N] = { .name = "Linksys WRT160N", .buttons = { @@ -983,6 +996,9 @@ static struct platform_t __init *platform_detect(void) if (!strcmp(boardtype, "0x0101") && !strcmp(getvar("boot_ver"), "v3.6")) return &platforms[WRT54G3G]; + if (!strcmp(boardtype, "0x042f") && !strcmp(getvar("model_name"), "WRT54G3GV2-VF")) + return &platforms[WRT54G3GV2_VF]; + if (!strcmp(getvar("et1phyaddr"),"5") && !strcmp(getvar("et1mdcport"), "1")) return &platforms[WRTSL54GS]; |