From owner-svn-src-all@FreeBSD.ORG Sun Apr 5 22:00:45 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E2ACE17; Sun, 5 Apr 2015 22:00:45 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 7968B350; Sun, 5 Apr 2015 22:00:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t35M0jt7087919; Sun, 5 Apr 2015 22:00:45 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t35M0jur087918; Sun, 5 Apr 2015 22:00:45 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201504052200.t35M0jur087918@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Sun, 5 Apr 2015 22:00:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281122 - head/sys/mips/conf X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2015 22:00:45 -0000 Author: adrian Date: Sun Apr 5 22:00:44 2015 New Revision: 281122 URL: https://svnweb.freebsd.org/changeset/base/281122 Log: Convert the DIR-825C1 to use the new map based MAC address configuration. Tested: * DIR-825C1 Modified: head/sys/mips/conf/DIR-825C1.hints Modified: head/sys/mips/conf/DIR-825C1.hints ============================================================================== --- head/sys/mips/conf/DIR-825C1.hints Sun Apr 5 21:10:38 2015 (r281121) +++ head/sys/mips/conf/DIR-825C1.hints Sun Apr 5 22:00:44 2015 (r281122) @@ -1,13 +1,37 @@ # $FreeBSD$ -# This is a placeholder until the hardware support is complete. - # mdiobus0 on arge0 hint.argemdio.0.at="nexus0" hint.argemdio.0.maddr=0x19000000 hint.argemdio.0.msize=0x1000 hint.argemdio.0.order=0 +# 0x1ffe0004 is the the "unit MAC". +# 0x1ffe0018 is the second "MAC". +# Right now this doesn't have any option for more than one +# "unit MACs", so: +# ath0: unit MAC +# ath1: unit MAC + 1 +# arge0: unit MAC + 2 +# arge1: leave as default; not used. +hint.ar71xx.0.eeprom_mac_addr=0x1ffe0004 +hint.ar71xx.0.eeprom_mac_isascii=1 + +hint.ar71xx_mac_map.0.devid=ath +hint.ar71xx_mac_map.0.unitid=0 +hint.ar71xx_mac_map.0.offset=0 +hint.ar71xx_mac_map.0.is_local=0 + +hint.ar71xx_mac_map.1.devid=ath +hint.ar71xx_mac_map.1.unitid=1 +hint.ar71xx_mac_map.1.offset=1 +hint.ar71xx_mac_map.1.is_local=0 + +hint.ar71xx_mac_map.2.devid=arge +hint.ar71xx_mac_map.2.unitid=0 +hint.ar71xx_mac_map.2.offset=2 +hint.ar71xx_mac_map.2.is_local=0 + # DIR-825C1 GMAC configuration # + AR934X_ETH_CFG_RGMII_GMAC0 (1 << 0) # Onboard AR9344 10/100 switch is not wired up