summaryrefslogtreecommitdiff
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
commit7790289f3e47f73861913e1ce72e26a853456dd5 (patch)
treee956888bb040c1bd22339b4afc85bf19e9d9092e /package/switch/src
parenta8b83afe372c03575f4de568df81d7a7c2d742d0 (diff)
downloadmtk-20170518-7790289f3e47f73861913e1ce72e26a853456dd5.zip
mtk-20170518-7790289f3e47f73861913e1ce72e26a853456dd5.tar.gz
mtk-20170518-7790289f3e47f73861913e1ce72e26a853456dd5.tar.bz2
Add Trendware TEW-411BRplus (#1038)
SVN-Revision: 5764
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 083b6eb..beaf9ca 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);