aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/src
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-12-11 21:46:31 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-12-11 21:46:31 +0000
commit9fce41951eaa0fa2115c90acd9ea303c7966e20d (patch)
treea1145b61a4b06844569cdb3c1d42da4bb1d14b8d /package/switch/src
parent7632ea844e96ca13ec1fd8f811cc5ebcff7640a8 (diff)
downloadmaster-187ad058-9fce41951eaa0fa2115c90acd9ea303c7966e20d.tar.gz
master-187ad058-9fce41951eaa0fa2115c90acd9ea303c7966e20d.tar.bz2
master-187ad058-9fce41951eaa0fa2115c90acd9ea303c7966e20d.zip
Add Trendware TEW-411BRplus (#1038)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5764 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src')
-rw-r--r--package/switch/src/switch-adm.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/switch/src/switch-adm.c b/package/switch/src/switch-adm.c
index 083b6ebc47..beaf9ca787 100644
--- a/package/switch/src/switch-adm.c
+++ b/package/switch/src/switch-adm.c
@@ -498,8 +498,17 @@ static int detect_adm(void)
#if defined(BCMGPIO2) || defined(BCMGPIO)
int boardflags = atoi(nvram_get("boardflags"));
+ int boardnum = atoi(nvram_get("boardnum"));
- if ((boardflags & 0x80) || force) {
+ if (boardnum == 44) { /* Trendware TEW-411BRP+ */
+ ret = 1;
+
+ eecs = getgpiopin("adm_eecs", 2);
+ eesk = getgpiopin("adm_eesk", 3);
+ eedi = getgpiopin("adm_eedi", 4);
+ eerc = getgpiopin("adm_rc", 5);
+
+ } else if ((boardflags & 0x80) || force) {
ret = 1;
eecs = getgpiopin("adm_eecs", 2);