summaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-01-21 23:48:23 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-01-21 23:48:23 +0000
commitc3794557a9a87c84faa6e18d6e596822be029b06 (patch)
tree6b0a2e550e8fe0e9731b54ca485fb6d54c731e46 /package/broadcom-diag
parent38d48b38aaa7dc5eb3c7a816876f38b7dab0d850 (diff)
[brcm-2.4] add support for OvisLink WL-1600GL
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19262 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r--package/broadcom-diag/Makefile2
-rw-r--r--package/broadcom-diag/src/diag.c20
2 files changed, 21 insertions, 1 deletions
diff --git a/package/broadcom-diag/Makefile b/package/broadcom-diag/Makefile
index deffaf6d2..6c55dc3fe 100644
--- a/package/broadcom-diag/Makefile
+++ b/package/broadcom-diag/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=broadcom-diag
-PKG_RELEASE:=5
+PKG_RELEASE:=6
include $(INCLUDE_DIR)/package.mk
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index fefd036c7..8f296248b 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -138,6 +138,9 @@ enum {
/* Askey */
RT210W,
+
+ /* OvisLink */
+ WL1600GL,
};
static void __init bcm4780_init(void) {
@@ -852,6 +855,19 @@ static struct platform_t __initdata platforms[] = {
{ .name = "power", .gpio = 1 << 5, .polarity = REVERSE },
},
},
+ [WL1600GL] = {
+ .name = "OvisLink WL-1600GL",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 3 },
+ { .name = "ses", .gpio = 1 << 4 },
+ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 5, .polarity = REVERSE },
+ { .name = "wps", .gpio = 1 << 2, .polarity = REVERSE },
+ { .name = "wlan", .gpio = 1 << 1, .polarity = REVERSE },
+ { .name = "connected", .gpio = 1 << 0, .polarity = REVERSE },
+ },
+ },
};
static struct platform_t __init *platform_detect(void)
@@ -966,6 +982,10 @@ static struct platform_t __init *platform_detect(void)
if (!strcmp(boardnum, "1024") && !strcmp(boardtype, "0x0446"))
return &platforms[WAP54GV2];
+ if (!strcmp(boardnum, "8") && !strcmp(boardtype, "0x048e"))
+ return &platforms[WL1600GL];
+
+
if (!strcmp(boardnum, "44") || !strcmp(boardnum, "44\r")) {
if (!strcmp(boardtype,"0x0101") || !strcmp(boardtype, "0x0101\r"))
return &platforms[TM2300V2]; /* Dell TrueMobile 2300 v2 */