From owner-svn-src-head@freebsd.org Wed May 25 06:47:30 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 645BEB49D83; Wed, 25 May 2016 06:47:30 +0000 (UTC) (envelope-from sgalabov@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1BCE51CCC; Wed, 25 May 2016 06:47:30 +0000 (UTC) (envelope-from sgalabov@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4P6lT3x012499; Wed, 25 May 2016 06:47:29 GMT (envelope-from sgalabov@FreeBSD.org) Received: (from sgalabov@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4P6lTQD012496; Wed, 25 May 2016 06:47:29 GMT (envelope-from sgalabov@FreeBSD.org) Message-Id: <201605250647.u4P6lTQD012496@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sgalabov set sender to sgalabov@FreeBSD.org using -f From: Stanislav Galabov Date: Wed, 25 May 2016 06:47:29 +0000 (UTC) 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 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2016 06:47:30 -0000 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