From owner-freebsd-arm@FreeBSD.ORG Mon May 28 19:34:00 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 F009E16A515 for ; Mon, 28 May 2007 19:34:00 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.176]) by mx1.freebsd.org (Postfix) with ESMTP id 875B313C4E3 for ; Mon, 28 May 2007 19:33:58 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/smtpout06/MantshX 4.0) with ESMTP id l4SJB7wk003571; Mon, 28 May 2007 12:11:09 -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 l4SJB6fC013660 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 28 May 2007 12:11:06 -0700 (PDT) In-Reply-To: <20070528134607.GA67826@zibbi.meraka.csir.co.za> References: <20070528134607.GA67826@zibbi.meraka.csir.co.za> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Mon, 28 May 2007 12:10:58 -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 19:34:01 -0000 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 The patch looks good to me. -- Marcel Moolenaar xcllnt@mac.com