From owner-svn-src-head@FreeBSD.ORG Sun Apr 15 22:59:56 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0430106564A; Sun, 15 Apr 2012 22:59:56 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DB0048FC17; Sun, 15 Apr 2012 22:59:56 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q3FMxuXs005376; Sun, 15 Apr 2012 22:59:56 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q3FMxupO005374; Sun, 15 Apr 2012 22:59:56 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201204152259.q3FMxupO005374@svn.freebsd.org> From: Adrian Chadd Date: Sun, 15 Apr 2012 22:59:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r234327 - head/sys/mips/conf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 15 Apr 2012 22:59:57 -0000 Author: adrian Date: Sun Apr 15 22:59:56 2012 New Revision: 234327 URL: http://svn.freebsd.org/changeset/base/234327 Log: Add in the AP96 phy configuration from openwrt. * arge0 doesn't (yet) work via the switch PHY ports; I'm not sure why. * arge1 maps to the WAN port. That works. TODO: * The PLL register needs a different (non-default) value for Gigabit Ethernet. The board setup code needs to be extended a bit to allow for non-default pll_1000 values - right now, those values come out of hard-coded values in the per-chip set_pll_ge() routines. Obtained from: Linux / OpenWRT Modified: head/sys/mips/conf/AP96.hints Modified: head/sys/mips/conf/AP96.hints ============================================================================== --- head/sys/mips/conf/AP96.hints Sun Apr 15 22:34:22 2012 (r234326) +++ head/sys/mips/conf/AP96.hints Sun Apr 15 22:59:56 2012 (r234327) @@ -1,17 +1,15 @@ # $FreeBSD$ -hint.arge.0.phymask=0x000c -hint.arge.0.media=100 +# TODO: RGMII +hint.arge.0.phymask=0x0f +hint.arge.0.media=1000 hint.arge.0.fduplex=1 -# XXX grab these from uboot? -# hint.arge.0.eeprommac=0x1f01fc00 - -# The ath NICs have calibration data in flash. -# PCI slot 17 -# hint.ath.0.eepromaddr=0x1fff1000 -# PCI slot 18 -# hint.ath.1.eepromaddr=0x1fff5000 +# TODO: RGMII +# TODO: pll_1000 = 0x1f000000 +hint.arge.1.phymask=0x10 +# hint.arge.1.media=1000 +# hint.arge.1.fduplex=1 # ath0 - slot 17 hint.pcib.0.bus.0.17.0.ath_fixup_addr=0x1fff1000