From owner-freebsd-arm@FreeBSD.ORG Mon May 28 20:16:53 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EEBB016A46D for ; Mon, 28 May 2007 20:16:53 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [146.64.24.58]) by mx1.freebsd.org (Postfix) with ESMTP id 8BAC513C4BB for ; Mon, 28 May 2007 20:16:53 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id B016D33CCE; Mon, 28 May 2007 22:16:51 +0200 (SAST) Date: Mon, 28 May 2007 22:16:51 +0200 From: John Hay To: Marcel Moolenaar Message-ID: <20070528201651.GA84806@zibbi.meraka.csir.co.za> References: <20070528134607.GA67826@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-arm@freebsd.org Subject: Re: removing hardcoded uart vbase X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2007 20:16:54 -0000 On Mon, May 28, 2007 at 12:10:58PM -0700, Marcel Moolenaar wrote: > > On May 28, 2007, at 6:46 AM, John Hay wrote: > > >To find the console, I just check for uart 0 in the hints. Is that > >good enough or should one also check for flags 0x10 like on sio > >devices? > > Typically, you set uart.hw.console to point to the console. Since > device numbers don't make sense, you define the console in terms of > hardware I/O location. For example: > uart.hw.console=io:0x3f8 > or > uart.hw.console=mm:0xfef04500 > > The uart.hw.console variable also allows you to specify baudrate, > stopbits, parity and the device class (ns8250, z8530, etc), which > hints do not. > > Hints are not recommended, unless you already have hints to > describe the hardware. In that case you can simply add: > hint.uart.0.flags=0x10 Well on the ixp425/avila we are moving to hints so that we can support different boards easier. For instance both the Avila and Pronghorn Metro boards use the same ixp425 cpu, which has 2 serial ports, but on the Avila they decided to bring one serial port out and on the Pronghorn, the other. :-) So shall I then just run through the hints of the known number of serial ports and look for the flags? > The patch looks good to me. Thanks. John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org