ath79: add support for TP-Link TL-WR941HP v1
[openwrt/staging/wigyori.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index e0c4f31e9d46a087e5ed6bbce1a79f7738becf37..56cff8c0314ab94f4b666944b7cb854535d895b2 100644 (file)
@@ -85,7 +85,9 @@ ath79_setup_interfaces()
        ubnt,picostation-m|\
        ubnt,powerbeam-5ac-500|\
        ubnt,powerbeam-5ac-gen2|\
+       ubnt,powerbeam-m-xw|\
        ubnt,powerbridge-m|\
+       ubnt,rocket-5ac-lite|\
        ubnt,rocket-m|\
        ubnt,unifiac-lite|\
        ubnt,unifiac-lr|\
@@ -170,6 +172,8 @@ ath79_setup_interfaces()
        comfast,cf-e120a-v3|\
        comfast,cf-e314n-v2|\
        compex,wpj531-16m|\
+       openmesh,a40|\
+       openmesh,a60|\
        openmesh,om2p-v4|\
        openmesh,om2p-hs-v4|\
        plasmacloud,pa300|\
@@ -186,7 +190,14 @@ ath79_setup_interfaces()
        ubnt,routerstation)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
-       comfast,cf-e560ac)
+       comfast,cf-e375ac)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:wan" "2:lan"
+               ;;
+       comfast,cf-e560ac|\
+       qca,ap143-8m|\
+       qca,ap143-16m|\
+       tplink,tl-wr841hp-v3)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
@@ -202,6 +213,7 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "3:lan" "2:wan"
                ;;
+       devolo,dlan-pro-1200plus-ac|\
        devolo,magic-2-wifi)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:wan" "3:lan" "4:lan"
@@ -291,6 +303,11 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
                ;;
+       nec,wf1200cr)
+               ucidef_set_interface_wan "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:lan"
+               ;;
        nec,wg1200cr|\
        qxwlan,e1700ac-v2-8m|\
        qxwlan,e1700ac-v2-16m|\
@@ -381,7 +398,8 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "5:lan:4"
                ;;
-       tplink,tl-wr842n-v2)
+       tplink,tl-wr842n-v2)\
+       tplink,tl-wr941hp-v1)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3"
@@ -437,8 +455,8 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan"
                ;;
-       zbtlink,zbt-wd323|\
-       xiaomi,mi-router-4q)
+       xiaomi,mi-router-4q|\
+       zbtlink,zbt-wd323)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
                        "0@eth0" "3:lan:1" "4:lan:2"
@@ -487,10 +505,14 @@ ath79_setup_macs()
                lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
                wan_mac=$(fritz_tffs -n macb -i $(find_mtd_part "tffs (1)"))
                ;;
+       comfast,cf-e375ac)
+               wan_mac=$(macaddr_add $(mtd_get_mac_binary art 0x0) 1)
+               ;;
        compex,wpj344-16m|\
        compex,wpj563)
                wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)
                ;;
+       devolo,dlan-pro-1200plus-ac|\
        devolo,magic-2-wifi)
                label_mac=$(macaddr_add "$(mtd_get_mac_binary art 0x1002)" 3)
                ;;
@@ -525,8 +547,7 @@ ath79_setup_macs()
                ;;
        dlink,dir-842-c1|\
        dlink,dir-842-c2|\
-       dlink,dir-842-c3|\
-       nec,wg1200cr)
+       dlink,dir-842-c3)
                lan_mac=$(mtd_get_mac_ascii devdata "lanmac")
                wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
                label_mac=$lan_mac
@@ -587,6 +608,12 @@ ath79_setup_macs()
                base_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
                wan_mac=$(macaddr_add "$base_mac" 1)
                ;;
+       nec,wf1200cr|\
+       nec,wg1200cr)
+               lan_mac=$(mtd_get_mac_ascii devdata "lanmac")
+               wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
+               label_mac=$wan_mac
+               ;;
        nec,wg800hp)
                lan_mac=$(mtd_get_mac_text board_data 0x280)
                wan_mac=$(mtd_get_mac_text board_data 0x480)