From owner-svn-src-head@FreeBSD.ORG Mon Jan 21 06:47:06 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C00A871; Mon, 21 Jan 2013 06:47:06 +0000 (UTC) (envelope-from jmallett@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id B2B79DA4; Mon, 21 Jan 2013 06:47:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r0L6l6j2094662; Mon, 21 Jan 2013 06:47:06 GMT (envelope-from jmallett@svn.freebsd.org) Received: (from jmallett@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r0L6l6bC094661; Mon, 21 Jan 2013 06:47:06 GMT (envelope-from jmallett@svn.freebsd.org) Message-Id: <201301210647.r0L6l6bC094661@svn.freebsd.org> From: Juli Mallett Date: Mon, 21 Jan 2013 06:47:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245712 - head/sys/contrib/octeon-sdk 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.14 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: Mon, 21 Jan 2013 06:47:06 -0000 Author: jmallett Date: Mon Jan 21 06:47:06 2013 New Revision: 245712 URL: http://svnweb.freebsd.org/changeset/base/245712 Log: Fix packet reception and other issues arising from incorrect ASX clock configuration on the physical ports of the Ubiquiti EdgeRouter Lite. Modified: head/sys/contrib/octeon-sdk/cvmx-helper-board.c Modified: head/sys/contrib/octeon-sdk/cvmx-helper-board.c ============================================================================== --- head/sys/contrib/octeon-sdk/cvmx-helper-board.c Mon Jan 21 06:46:17 2013 (r245711) +++ head/sys/contrib/octeon-sdk/cvmx-helper-board.c Mon Jan 21 06:47:06 2013 (r245712) @@ -1394,6 +1394,21 @@ int __cvmx_helper_board_hardware_enable( } } } +#if defined(OCTEON_VENDOR_UBIQUITI) + else if (cvmx_sysinfo_get()->board_type == CVMX_BOARD_TYPE_CUST_UBIQUITI_E100) + { + /* Configure ASX cloks for all ports on interface 0. */ + if (interface == 0) + { + int port; + + for (port = 0; port < 3; port++) { + cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(port, interface), 16); + cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(port, interface), 0); + } + } + } +#endif return 0; }