svn commit: r300659 - in head/sys/mips: conf mediatek
Stanislav Galabov
sgalabov at FreeBSD.org
Wed May 25 06:47:30 UTC 2016
Author: sgalabov
Date: Wed May 25 06:47:28 2016
New Revision: 300659
URL: https://svnweb.freebsd.org/changeset/base/300659
Log:
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
Modified:
head/sys/mips/conf/RT3883_FDT
head/sys/mips/mediatek/files.mediatek
head/sys/mips/mediatek/std.mediatek
Modified: head/sys/mips/conf/RT3883_FDT
==============================================================================
--- head/sys/mips/conf/RT3883_FDT Wed May 25 06:39:48 2016 (r300658)
+++ head/sys/mips/conf/RT3883_FDT Wed May 25 06:47:28 2016 (r300659)
@@ -76,3 +76,7 @@ device if_bridge
# Extres
device ext_resources
device clk
+
+# For now there's no etherswitch support for RT3662/RT3883
+nodevice etherswitch
+nodevice mtkswitch
Modified: head/sys/mips/mediatek/files.mediatek
==============================================================================
--- head/sys/mips/mediatek/files.mediatek Wed May 25 06:39:48 2016 (r300658)
+++ head/sys/mips/mediatek/files.mediatek Wed May 25 06:47:28 2016 (r300659)
@@ -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
Modified: head/sys/mips/mediatek/std.mediatek
==============================================================================
--- head/sys/mips/mediatek/std.mediatek Wed May 25 06:39:48 2016 (r300658)
+++ head/sys/mips/mediatek/std.mediatek Wed May 25 06:47:28 2016 (r300659)
@@ -82,3 +82,9 @@ device loop
# ether device support
device ether
+
+# ether switch support
+device etherswitch
+device miibus
+device mtkswitch
+device mdio
More information about the svn-src-all
mailing list