ramips: fix switch ports settings
authorChen Minqiang <ptpt52@gmail.com>
Wed, 7 Aug 2019 00:58:48 +0000 (08:58 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 17 Aug 2019 15:52:34 +0000 (23:52 +0800)
This change the switch settings for:
HC5661: 4 lan ports + 1 wan port
Y1S: 2 lan ports(G port) + 2 lan ports(E port) + 1 wan port

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
target/linux/ramips/base-files/etc/board.d/02_network

index e9f4e98fa5587ee76d1522e7e6624ec1b8341154..c0de9d4e50839fad5f34d3759aa62a12dfbf8c59 100755 (executable)
@@ -194,6 +194,7 @@ ramips_setup_interfaces()
        glinet,gl-mt300n|\
        glinet,gl-mt750|\
        hilink,hlk-7628n|\
+       hiwifi,hc5661|\
        hiwifi,hc5861b|\
        jcg,jhr-n805r|\
        jcg,jhr-n825r|\
@@ -348,9 +349,7 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan" "4:lan" "6@eth0"
                ;;
-       head-weblink,hdrm200|\
-       hiwifi,hc5661|\
-       lenovo,newifi-y1s)
+       head-weblink,hdrm200)
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0"
                ;;
@@ -383,6 +382,10 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan:2" "1:lan:1" "4:wan" "6@eth0"
                ;;
+       lenovo,newifi-y1s)
+               ucidef_add_switch "switch0" \
+                       "1:lan:4" "2:lan:3" "4:lan:2" "5:lan:1" "0:wan" "6@eth0"
+               ;;
        linksys,e1700|\
        ralink,mt7620a-mt7530-evb)
                ucidef_add_switch "switch1" \