aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2010-12-02 21:27:54 +0000
committerHauke Mehrtens <hauke@openwrt.org>2010-12-02 21:27:54 +0000
commitd0757421a7d2d8f6b634d00ea25e6abf6d7b4699 (patch)
tree7583f950e56419c23c980d861556d2a976b8c12b /package
parent59c25583ffcf7a1a2887150485e71a466f1f0205 (diff)
downloadupstream-d0757421a7d2d8f6b634d00ea25e6abf6d7b4699.tar.gz
upstream-d0757421a7d2d8f6b634d00ea25e6abf6d7b4699.tar.bz2
upstream-d0757421a7d2d8f6b634d00ea25e6abf6d7b4699.zip
brcm47xx: Add edimax PS1208mfg support
Thank you clemvangelis for the patches. (closes #7672) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24217 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/broadcom-diag/src/diag.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 501b835f47..55dfa757eb 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -138,6 +138,9 @@ enum {
/* Microsoft */
MN700,
+
+ /* Edimax */
+ PS1208MFG,
};
static void __init bcm4780_init(void) {
@@ -895,6 +898,17 @@ static struct platform_t __initdata platforms[] = {
{ .name = "power", .gpio = 1 << 6, .polarity = NORMAL },
},
},
+ /* Edimax */
+ [PS1208MFG] = {
+ .name = "Edimax PS-1208MFG",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 4 },
+ },
+ .leds = {
+ { .name = "status", .gpio = 1 << 1, .polarity = NORMAL },
+ { .name = "wlan", .gpio = 1 << 0, .polarity = NORMAL },
+ },
+ },
};
static struct platform_t __init *platform_detect(void)
@@ -1121,9 +1135,13 @@ static struct platform_t __init *platform_detect(void)
if (startswith(boardnum, "04FN")) /* SimpleTech SimpleShare */
return &platforms[STI_NAS];
- if (!strcmp(getvar("boardnum"), "10") && !strcmp(getvar("boardrev"), "0x13")) /* D-Link DWL-3150 */
+ if (!strcmp(boardnum, "10") && !strcmp(getvar("boardrev"), "0x13")) /* D-Link DWL-3150 */
return &platforms[DWL3150];
+ if (!strcmp(boardnum, "01") && !strcmp(boardtype, "0x048e") && /* Edimax PS1208MFG */
+ !strcmp(getvar("status_gpio"), "1")) /* gpio based detection */
+ return &platforms[PS1208MFG];
+
/* not found */
return NULL;
}