aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorMichael Lee <igvtee@gmail.com>2016-05-28 22:22:10 +0800
committerJohn Crispin <john@phrozen.org>2016-06-13 22:51:43 +0200
commit9a4935687d6d79e0eeae37204794fc68e17c8b68 (patch)
treec4642ab6221cf968da84f6926d3bfe4e575c8e4b /target/linux/ramips/base-files
parent49b74218362eca516af5a4697a00cd4fa5d3640b (diff)
downloadupstream-9a4935687d6d79e0eeae37204794fc68e17c8b68.tar.gz
upstream-9a4935687d6d79e0eeae37204794fc68e17c8b68.tar.bz2
upstream-9a4935687d6d79e0eeae37204794fc68e17c8b68.zip
ramips: add support for DuZun DM06
DuZun DM06 is a develop board based on mt7628 64M RAM, 8M SPI Flash, 1 WAN, 1 LAN. wm8960 codec with line out, line in and speaker output. Signed-off-by: Michael Lee <igvtee@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network4
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
3 files changed, 8 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 4728c75312..6807eede31 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -172,6 +172,10 @@ ramips_setup_interfaces()
wrh-300cr)
ucidef_set_interface_lan "eth0"
;;
+ duzun-dm06)
+ ucidef_add_switch "switch0" \
+ "1:lan" "0:wan" "6@eth0"
+ ;;
e1700|\
mt7620a_mt7530)
ucidef_add_switch "switch1" \
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index cbe455d77d..567e5066f8 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -151,6 +151,9 @@ ramips_board_detect() {
*"Dovado Tiny AC")
name="tiny-ac"
;;
+ *"DuZun DM06")
+ name="duzun-dm06"
+ ;;
*"E1700")
name="e1700"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 91c999799f..c71fc64917 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -50,6 +50,7 @@ platform_check_image() {
dir-620-a1|\
dir-620-d1|\
dir-810l|\
+ duzun-dm06|\
e1700|\
esr-9753|\
ex2700|\