From owner-freebsd-arm@FreeBSD.ORG Fri May 29 21:16:21 2015 Return-Path: Delivered-To: arm@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 9750BC9E for ; Fri, 29 May 2015 21:16:21 +0000 (UTC) (envelope-from che@bein.link) Received: from mail.bein.link (bein.link [37.252.124.82]) (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 5F2961563 for ; Fri, 29 May 2015 21:16:20 +0000 (UTC) (envelope-from che@bein.link) Received: from thinkpad.localnet (home.bein.link [188.134.8.193]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bein.link (Postfix) with ESMTPSA id 40F931AF1E1 for ; Fri, 29 May 2015 21:10:38 +0000 (UTC) From: Maxim V Filimonov To: arm@freebsd.org Reply-To: che@bein.link Subject: if_dwc instead of if_emac on cubieboard2 Date: Sat, 30 May 2015 00:10:37 +0300 Message-ID: <6544486.FbFh8Vg9WT@thinkpad> User-Agent: KMail/4.14.3 (FreeBSD/10.1-RELEASE-p10; KDE/4.14.3; amd64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2015 21:16:21 -0000 Hello everyone, I was advised to look at if_dwc instead of if_emac to improve network performance on my cubieboard2. However, I was told that setting > device dwc instead of > device emac in the kernel config isn't enough. It's also necessary to configure cubieboard's pins on dwc startup. This is where I'm stuck. I have the code: 1. http://svnweb.freebsd.org/base/head/sys/arm/allwinner/a10_gpio.c?revision=281085&view=markup#l527 2. http://svnweb.freebsd.org/base/head/sys/arm/allwinner/if_emac.c?revision=281675&view=markup#l143 And I don't know how to make it work. What i was told, though, was that I should use the constant 5 instead of A10_GPIO_PULLDOWN in a10_gpio.c How can I make the code from a10_gpio.c get called on dwc startup? -- wbr, Maxim Filimonov