Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 May 2016 06:47:29 +0000 (UTC)
From:      Stanislav Galabov <sgalabov@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300659 - in head/sys/mips: conf mediatek
Message-ID:  <201605250647.u4P6lTQD012496@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605250647.u4P6lTQD012496>