aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/base-files/etc
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-04-07 17:42:08 +0200
committerJohn Crispin <john@phrozen.org>2017-04-07 17:42:08 +0200
commit64175ffb7911f5fcd3907df09fdb9bfab53ee641 (patch)
treecf466db6e64c3365609e98d4ec9dcd4d27c1a835 /target/linux/mediatek/base-files/etc
parent43d06ec2c75199591f33943eb2f70e8aae80fd45 (diff)
downloadupstream-64175ffb7911f5fcd3907df09fdb9bfab53ee641.tar.gz
upstream-64175ffb7911f5fcd3907df09fdb9bfab53ee641.tar.bz2
upstream-64175ffb7911f5fcd3907df09fdb9bfab53ee641.zip
mediatek: various fixes for v4.9
* adds MT7530 DSA support * backport latest ethernet driver * add PMIC leds * add auxadc support * add efuse support * add thermal sensor support * add irq affinity support for ethernet still todo * DSA multi cpu support Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/base-files/etc')
-rwxr-xr-xtarget/linux/mediatek/base-files/etc/board.d/02_network13
1 files changed, 5 insertions, 8 deletions
diff --git a/target/linux/mediatek/base-files/etc/board.d/02_network b/target/linux/mediatek/base-files/etc/board.d/02_network
index 2549ff954e..d772ab013f 100755
--- a/target/linux/mediatek/base-files/etc/board.d/02_network
+++ b/target/linux/mediatek/base-files/etc/board.d/02_network
@@ -1,7 +1,6 @@
#!/bin/sh
. /lib/functions.sh
-. /lib/mediatek.sh
. /lib/functions/uci-defaults.sh
. /lib/functions/system.sh
@@ -10,18 +9,16 @@ mediatek_setup_interfaces()
local board="$1"
case $board in
- eMMC | \
- NAND | \
- mt7623_evb)
- ucidef_set_interfaces_lan_wan "eth0.1" "eth1.2"
- ucidef_add_switch "switch0" \
- "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" "5@eth1"
+ 'mediatek,mt7623-rfb-emmc' | \
+ 'mediatek,mt7623-rfb-nand')
+ ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
+ ucidef_set_interface_wan wan
;;
esac
}
board_config_update
-board=$(mediatek_board_name)
+board=$(board_name)
mediatek_setup_interfaces $board
board_config_flush