diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-02-28 11:09:50 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-02-28 11:09:50 +0000 |
commit | 1edd9d68176c1a0d173333d9cbe588066ab6a849 (patch) | |
tree | e5018bffe95760055902751a699c4246d1d45d5c /package | |
parent | baffbe5c4c2d4b3818a8598542e559d58289116c (diff) | |
download | upstream-1edd9d68176c1a0d173333d9cbe588066ab6a849.tar.gz upstream-1edd9d68176c1a0d173333d9cbe588066ab6a849.tar.bz2 upstream-1edd9d68176c1a0d173333d9cbe588066ab6a849.zip |
[diag] add missing hunks to recognize the Microsoft MN-700 device (#6749)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19896 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/broadcom-diag/src/diag.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 8f296248be..7df009e7c0 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -141,6 +141,9 @@ enum { /* OvisLink */ WL1600GL, + + /* Microsoft */ + MN700, }; static void __init bcm4780_init(void) { @@ -868,6 +871,16 @@ static struct platform_t __initdata platforms[] = { { .name = "connected", .gpio = 1 << 0, .polarity = REVERSE }, }, }, + /* Microsoft */ + [MN700] = { + .name = "Microsoft MN-700", + .buttons = { + { .name = "reset", .gpio = 1 << 7 }, + }, + .leds = { + { .name = "power", .gpio = 1 << 6, .polarity = NORMAL }, + }, + }, }; static struct platform_t __init *platform_detect(void) @@ -1027,8 +1040,13 @@ static struct platform_t __init *platform_detect(void) if (simple_strtoul(boardnum, NULL, 0) == 2) return &platforms[WAP54GV1]; } - if (startswith(getvar("hardware_version"), "WL500-")) - return &platforms[WL500G]; + /* MN-700 has also hardware_version 'WL500-...', so use boardnum */ + if (startswith(getvar("hardware_version"), "WL500-")) { + if (!strcmp(getvar("boardnum"), "mn700")) + return &platforms[MN700]; + else + return &platforms[WL500G]; + } if (startswith(getvar("hardware_version"), "WL300-")) { /* Either WL-300g or WL-HDD, do more extensive checks */ if ((simple_strtoul(getvar("et0phyaddr"), NULL, 0) == 0) && |