aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-10-29 18:51:02 +0000
committerJohn Crispin <blogic@openwrt.org>2014-10-29 18:51:02 +0000
commit344d6e184b41e5a165824f2c7fee2c09097e5b7e (patch)
tree943e001eb897c9f7283e5349704642ac4425099e /target
parent13006543e009482095ecf573d93f6787a5709093 (diff)
downloadmaster-187ad058-344d6e184b41e5a165824f2c7fee2c09097e5b7e.tar.gz
master-187ad058-344d6e184b41e5a165824f2c7fee2c09097e5b7e.tar.bz2
master-187ad058-344d6e184b41e5a165824f2c7fee2c09097e5b7e.zip
ralink: fix switch config on mt7530 evb
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43105 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network7
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
2 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 6510b1ae90..d2daab5ddb 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -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
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index b2b299dc51..e3977aa71d 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -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"
;;