aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/mediatek
diff options
context:
space:
mode:
authorStanislav Galabov <sgalabov@FreeBSD.org>2016-05-25 06:47:28 +0000
committerStanislav Galabov <sgalabov@FreeBSD.org>2016-05-25 06:47:28 +0000
commit8fff7b95fdb525d73a7138ff5ba21f34b7e75004 (patch)
tree65e08f4cb66f3b47c2559698e217f0c0dbb39ae4 /sys/mips/mediatek
parent4e5f11e0b96f602e41be941d612e582b5657944f (diff)
downloadsrc-8fff7b95fdb525d73a7138ff5ba21f34b7e75004.tar.gz
src-8fff7b95fdb525d73a7138ff5ba21f34b7e75004.zip
Build etherswitch support for appropriate Ralink/Mediatek SoCs
Etherswitch support is built by default on all SoCs except RT3662/RT3883 as they have no built-in switch and their configurations with external switches are not yet supported. Sponsored by: Smartcom - Bulgaria AD
Notes
Notes: svn path=/head/; revision=300659
Diffstat (limited to 'sys/mips/mediatek')
-rw-r--r--sys/mips/mediatek/files.mediatek5
-rw-r--r--sys/mips/mediatek/std.mediatek6
2 files changed, 11 insertions, 0 deletions
diff --git a/sys/mips/mediatek/files.mediatek b/sys/mips/mediatek/files.mediatek
index 81c12170b416..a25c3292f506 100644
--- a/sys/mips/mediatek/files.mediatek
+++ b/sys/mips/mediatek/files.mediatek
@@ -40,3 +40,8 @@ mips/mips/tick.c standard
# Temporary Reset if
mips/mediatek/fdt_reset.c standard
mips/mediatek/fdt_reset_if.m standard
+
+# Switch
+dev/etherswitch/mtkswitch/mtkswitch.c optional mtkswitch
+dev/etherswitch/mtkswitch/mtkswitch_rt3050.c optional mtkswitch
+dev/etherswitch/mtkswitch/mtkswitch_mt7620.c optional mtkswitch
diff --git a/sys/mips/mediatek/std.mediatek b/sys/mips/mediatek/std.mediatek
index df7a876340b0..7806da8f099a 100644
--- a/sys/mips/mediatek/std.mediatek
+++ b/sys/mips/mediatek/std.mediatek
@@ -82,3 +82,9 @@ device loop
# ether device support
device ether
+
+# ether switch support
+device etherswitch
+device miibus
+device mtkswitch
+device mdio