Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2014 01:32:28 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262515 - head/sys/mips/conf
Message-ID:  <201402260132.s1Q1WSuc026244@svn.freebsd.org>

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



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