From owner-svn-src-all@FreeBSD.ORG Wed Feb 26 01:32:28 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 64E01F15; Wed, 26 Feb 2014 01:32:28 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3687113AA; Wed, 26 Feb 2014 01:32:28 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1Q1WSgj026245; Wed, 26 Feb 2014 01:32:28 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1Q1WSuc026244; Wed, 26 Feb 2014 01:32:28 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201402260132.s1Q1WSuc026244@svn.freebsd.org> From: Adrian Chadd Date: Wed, 26 Feb 2014 01:32:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262515 - 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.17 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: Wed, 26 Feb 2014 01:32:28 -0000 Author: adrian Date: Wed Feb 26 01:32:27 2014 New Revision: 262515 URL: http://svnweb.freebsd.org/changeset/base/262515 Log: Add the DB120 specific hints for the AR8327. Tested: * DB120 Modified: head/sys/mips/conf/DB120.hints Modified: head/sys/mips/conf/DB120.hints ============================================================================== --- head/sys/mips/conf/DB120.hints Wed Feb 26 01:32:06 2014 (r262514) +++ head/sys/mips/conf/DB120.hints Wed Feb 26 01:32:27 2014 (r262515) @@ -21,30 +21,32 @@ hint.arswitch.0.numphys=5 hint.arswitch.0.phy4cpu=0 hint.arswitch.0.is_rgmii=1 hint.arswitch.0.is_gmii=0 -# XXX other AR8327 configuration parameters -# pad0 cfg: -# .mode = AR8327_PAD_MAC_RGMII, -# .txclk_delay_en = true, -# .rxclk_delay_en = true, -# .txclk_delay_sel = AR8327_CLK_DELAY_SEL1, -# .rxclk_delay_sel = AR8327_CLK_DELAY_SEL2, - -# .led_ctrl0 = 0x00000000, -# .led_ctrl1 = 0xc737c737, -# .led_ctrl2 = 0x00000000, -# .led_ctrl3 = 0x00c30c00, -# .open_drain = true, - -# .port0_cfg = { -# .force_link = 1, -# .speed = AR8327_PORT_SPEED_1000, -# .duplex = 1, -# .txpause = 1, -# .rxpause = 1, -# }, +# Other AR8327 configuration parameters -# port6 cfg? +# AR8327_PAD_MAC_RGMII +hint.arswitch.0.pad.0.mode=6 +hint.arswitch.0.pad.0.txclk_delay_en=1 +hint.arswitch.0.pad.0.rxclk_delay_en=1 +# AR8327_CLK_DELAY_SEL1 +hint.arswitch.0.pad.0.txclk_delay_sel=1 +# AR8327_CLK_DELAY_SEL2 +hint.arswitch.0.pad.0.rxclk_delay_sel=2 + +# XXX there's no LED management just yet! +hint.arswitch.0.led.ctrl0=0x00000000 +hint.arswitch.0.led.ctrl1=0xc737c737 +hint.arswitch.0.led.ctrl2=0x00000000 +hint.arswitch.0.led.ctrl3=0x00c30c00 +hint.arswitch.0.led.open_drain=1 + +# force_link=1 is required for the rest of the parameters +# to be configured. +hint.arswitch.0.port.0.force_link=1 +hint.arswitch.0.port.0.speed=1000 +hint.arswitch.0.port.0.duplex=1 +hint.arswitch.0.port.0.txpause=1 +hint.arswitch.0.port.0.rxpause=1 # XXX OpenWRT DB120 BSP doesn't have media/duplex set? hint.arge.0.phymask=0x0