summaryrefslogtreecommitdiff
path: root/package/switch
diff options
context:
space:
mode:
Diffstat (limited to 'package/switch')
-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);