From owner-freebsd-arm@FreeBSD.ORG Mon May 28 21:12:05 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 927D616A46E for ; Mon, 28 May 2007 21:12:05 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.175]) by mx1.freebsd.org (Postfix) with ESMTP id 7BB5713C4C6 for ; Mon, 28 May 2007 21:12:05 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/smtpout05/MantshX 4.0) with ESMTP id l4SLC5Pu004205; Mon, 28 May 2007 14:12:05 -0700 (PDT) Received: from [172.16.1.3] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/smtpin02/MantshX 4.0) with ESMTP id l4SLC389004570 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 28 May 2007 14:12:03 -0700 (PDT) In-Reply-To: <20070528201651.GA84806@zibbi.meraka.csir.co.za> References: <20070528134607.GA67826@zibbi.meraka.csir.co.za> <20070528201651.GA84806@zibbi.meraka.csir.co.za> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Mon, 28 May 2007 14:11:56 -0700 To: John Hay X-Mailer: Apple Mail (2.752.3) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes 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 21:12:05 -0000 On May 28, 2007, at 1:16 PM, John Hay wrote: > 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? Yes. If you already use hints, you might as well use the flags hint. -- Marcel Moolenaar xcllnt@mac.com