ath79: add support for TP-Link TL-WPA8630P v2
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index e301b6f6163a2b024d5aeff5307631d60f25e116..b4e18296188d6b72d587e4e7a79e72c0749606ad 100755 (executable)
@@ -135,7 +135,8 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "6@eth1"
                ;;
-       compex,wpj344-16m)
+       compex,wpj344-16m|\
+       compex,wpj563)
                ucidef_add_switch "switch0" \
                        "0@eth0" "3:lan" "2:wan"
                ;;
@@ -292,6 +293,12 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:1" "2:lan:3" "3:lan:2"
                ;;
+       tplink,tl-wpa8630p-v2-eu|\
+       tplink,tl-wpa8630p-v2-int)
+               # port 5 (internal) is the power-line port
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "5:lan:4"
+               ;;
        tplink,tl-wr842n-v2)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
@@ -383,7 +390,8 @@ 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)"))
                ;;
-       compex,wpj344-16m)
+       compex,wpj344-16m|\
+       compex,wpj563)
                wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)
                ;;
        devolo,magic-2-wifi)