summaryrefslogtreecommitdiffstats
path: root/package/switch/src
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-12-11 21:46:31 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-12-11 21:46:31 +0000
commitd313d6dbc3d9b248cffb07b55d75f538457da896 (patch)
treea1145b61a4b06844569cdb3c1d42da4bb1d14b8d /package/switch/src
parent6e336367e4a1db5404202ccf58910e945db0af4f (diff)
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 083b6ebc4..beaf9ca78 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);