ralink: fix switch config on mt7530 evb
authorJohn Crispin <john@openwrt.org>
Wed, 29 Oct 2014 18:51:02 +0000 (18:51 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 29 Oct 2014 18:51:02 +0000 (18:51 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 43105

target/linux/ramips/base-files/etc/board.d/02_network
target/linux/ramips/base-files/lib/ramips.sh

index 6510b1ae904302d1ebd8f85a4a55cb50ca68b0da..d2daab5ddbe61b2d2ab7ee0a26907d6dd19eed1f 100755 (executable)
@@ -212,6 +212,13 @@ ramips_setup_interfaces()
                ucidef_set_interface_lan "eth0"
                ;;
 
+       mt7620a_mt7530)
+               ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+               ucidef_add_switch "switch1" "1" "1"
+               ucidef_add_switch_vlan "switch1" "1" "0 1 2 3 6t"
+               ucidef_add_switch_vlan "switch1" "2" "4 6t"
+               ;;
+
        *)
                RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
                if [ -n "${RT3X5X}" ]; then
index b2b299dc5111611db011af524cdbde879e7dc49e..e3977aa71daccec5162250d86870c7dbceeccab7 100755 (executable)
@@ -229,6 +229,9 @@ ramips_board_detect() {
        *"Asus RP-N53")
                name="rp-n53"
                ;;
+       *"Ralink MT7620a + MT7530 evaluation board")
+               name="mt7620a_mt7530"
+               ;;
        *"RT-G32 B1")
                name="rt-g32-b1"
                ;;