summaryrefslogtreecommitdiff
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-01-08 14:27:48 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-01-08 14:27:48 +0000
commita4ca693c7ea158ac5a804071b46dc3e4d2032fde (patch)
tree5c8ad9f088d118de20f28c6459be7cc830736e6e /package/broadcom-diag
parentc3c33ff16a0a23fe955848889ad564a0dbb781fe (diff)
downloadmtk-20170518-a4ca693c7ea158ac5a804071b46dc3e4d2032fde.zip
mtk-20170518-a4ca693c7ea158ac5a804071b46dc3e4d2032fde.tar.gz
mtk-20170518-a4ca693c7ea158ac5a804071b46dc3e4d2032fde.tar.bz2
Add back Sitecom WL-105b support
SVN-Revision: 10142
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r--package/broadcom-diag/src/diag.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 60bf612..e672982 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -115,6 +115,9 @@ enum {
DIR130,
DIR330,
DWL3150,
+
+ /* Sitecom */
+ WL105B,
};
static void __init bcm4780_init(void) {
@@ -618,6 +621,17 @@ static struct platform_t __initdata platforms[] = {
{ .name = "status", .gpio = 1 << 1},
},
},
+ /* Double check */
+ [WL105B] = {
+ .name = "Sitecom WL-105b",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 10},
+ },
+ .leds = {
+ { .name = "wlan", .gpio = 1 << 4},
+ { .name = "power", .gpio = 1 << 3},
+ },
+ },
};
static struct platform_t __init *platform_detect(void)
@@ -730,6 +744,9 @@ static struct platform_t __init *platform_detect(void)
(simple_strtoul(getvar("et1phyaddr"), NULL, 0) == 10))
return &platforms[WL300G];
}
+ /* Sitecom WL-105b */
+ if (!strncmp(boardnum, "2", 1) && simple_strtoul(getvar("GemtekPmonVer"), NULL, 0) == 1)
+ return &platforms[WL105B];
/* unknown asus stuff, probably bcm4702 */
if (!strncmp(boardnum, "asusX", 5))