summaryrefslogtreecommitdiff
path: root/package/broadcom-diag/src
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-12-24 11:00:31 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-12-24 11:00:31 +0000
commit0f794cd4a3d9fbcc239d6f449d8ca2d7dd7a96af (patch)
treed1c7cbc8697db21c8ada63559141a182ef610dc9 /package/broadcom-diag/src
parent035f5fa612c6cffa585e1047f2ec5ac1edd8f151 (diff)
add Askey RT210W support (patch from #6380)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18922 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r--package/broadcom-diag/src/diag.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 0b59ab12cf..ec1870f83d 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -132,6 +132,9 @@ enum {
/* Sitecom */
WL105B,
+
+ /* Askey */
+ RT210W,
};
static void __init bcm4780_init(void) {
@@ -807,6 +810,21 @@ static struct platform_t __initdata platforms[] = {
{ .name = "power", .gpio = 1 << 3},
},
},
+ /* Askey (and clones) */
+ [RT210W] = {
+ .name = "Askey RT210W",
+ .buttons = {
+ /* Power button is hard-wired to hardware reset */
+ /* but is also connected to GPIO 7 (probably for bootloader recovery) */
+ { .name = "power", .gpio = 1 << 7},
+ },
+ .leds = {
+ /* These were verified and named based on Belkin F5D4230-4 v1112 */
+ { .name = "connected", .gpio = 1 << 0, .polarity = REVERSE },
+ { .name = "wlan", .gpio = 1 << 3, .polarity = REVERSE },
+ { .name = "power", .gpio = 1 << 5, .polarity = REVERSE },
+ },
+ },
};
static struct platform_t __init *platform_detect(void)
@@ -976,6 +994,18 @@ static struct platform_t __init *platform_detect(void)
/* unknown asus stuff, probably bcm4702 */
if (startswith(boardnum, "asusX"))
return &platforms[ASUS_4702];
+
+ /* bcm4702 based Askey RT210W clones, Including:
+ * Askey RT210W (duh?)
+ * Siemens SE505v1
+ * Belkin F5D7230-4 before version v1444 (MiniPCI slot, not integrated)
+ */
+ if (!strcmp(boardtype,"bcm94710r4")
+ && !strcmp(boardnum ,"100")
+ && !strcmp(getvar("pmon_ver"),"v1.03.12.bk")
+ ){
+ return &platforms[RT210W];
+ }
}
if (buf || !strcmp(boardnum, "00")) {/* probably buffalo */