From owner-freebsd-mips@FreeBSD.ORG Sat Mar 8 22:41:32 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DFDC5FB7; Sat, 8 Mar 2014 22:41:32 +0000 (UTC) Received: from mailhost.netlab.sk (mailhost.netlab.sk [84.245.65.10]) (using SSLv3 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6F42A1F8; Sat, 8 Mar 2014 22:41:31 +0000 (UTC) Received: from zeta.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: LOGIN milan) by mailhost.netlab.sk with ESMTPA; Sat, 08 Mar 2014 23:41:32 +0100 id 004FC9C8.531B9C9C.00002BBC Date: Sat, 8 Mar 2014 23:41:29 +0100 From: Milan Obuch To: Adrian Chadd Subject: Re: I (think) the AR8327 switch support now works Message-ID: <20140308234129.76800b5c@zeta.dino.sk> In-Reply-To: References: <20140301143607.13a96bd6@zeta.dino.sk> <20140301200546.7ff373d1@zeta.dino.sk> <20140301231239.023b8733@zeta.dino.sk> <20140307140432.0a460da1@zeta.dino.sk> <20140307204230.3c86b9b1@zeta.dino.sk> <20140308140901.19782009@zeta.dino.sk> <20140308173642.0a48d2c2@zeta.dino.sk> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; i386-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2014 22:41:32 -0000 On Sat, 8 Mar 2014 14:18:46 -0800 Adrian Chadd wrote: > Hi, > > it's a different silicon version. > > Try this patch. It'll get the ar8327 probing and attaching. > > We'll worry about the AR9340 on-board switch after this. > > > -a > > Index: arswitch.c > =================================================================== > --- arswitch.c (revision 262681) > +++ arswitch.c (working copy) > @@ -135,6 +135,7 @@ > sc->sc_switchtype = AR8X16_SWITCH_AR8316; > break; > case 0x1202: > + case 0x1204: > chipname = "AR8327"; > sc->sc_switchtype = AR8X16_SWITCH_AR8327; > sc->mii_lo_first = 1; > Well, not yet: argemdio0: at mem 0x19000000-0x19000fff on nexus0 mdio0: on argemdio0 mdioproxy0: on mdio0 arswitch0: readreg 0x00000000: 0x12041204 arswitch0: readreg 0x00000000: 0x00000000 arswitch0: on mdio0 device_attach: arswitch0 attach returned 6 Milan