From owner-freebsd-mips@FreeBSD.ORG Fri Nov 16 18:04:11 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07A4A278 for ; Fri, 16 Nov 2012 18:04:11 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 788918FC0C for ; Fri, 16 Nov 2012 18:04:10 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id 16so3830162obc.13 for ; Fri, 16 Nov 2012 10:04:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=VopoBS/3tivz5MJb5vI/R3RZSMvBQYdZ5pdcciqdORM=; b=SeIcCVQ7dig50w/UTwK/1ZKtwB0lutQyGdPy5hCYLFJAg2bt43EitJRnYa7Da5wAqQ zJKekNU9Me6hWHglGTNrTMkHJP2W2wK0i6r+OdCHhFGn5Z5Vks6Mw/Z1yHfvvWMvHnfy Tu33Y17zQWskS5Let4l2lfZ9Wx4wkoaqdsf7ujfLWyK64+G0zW0c6ic1HgJxOqBa2JWD mqbcX2UDx5J0AgQQLvzge1ssyIUeNIeVlZr9W4n8pmx6NJASKbW3OMWinxk96jIo8s5M KKQ8Fv94AoaUdi36age0/8TPloZUNpG6nQgjY251ZvbPIO4kP8TfWPResxCi7S4Gq3Vn wpXQ== Received: by 10.60.19.132 with SMTP id f4mr4466280oee.75.1353089043902; Fri, 16 Nov 2012 10:04:03 -0800 (PST) Received: from [10.30.101.53] ([209.117.142.2]) by mx.google.com with ESMTPS id m8sm1660103oeb.3.2012.11.16.10.04.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Nov 2012 10:04:02 -0800 (PST) Sender: Warner Losh Subject: Re: heads up - changing uart -> uart_ar71xx Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Fri, 16 Nov 2012 11:03:59 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <8C61D434-FD1A-4DA2-BD5B-C7EBD6685A60@bsdimp.com> References: <201211161735.qAGHZb0j070251@pdx.rh.CN85.ChatUSA.com> <6FC455B0-EBF6-4160-A491-A818003262A6@bsdimp.com> To: Adrian Chadd X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQmTnjTBexyC7viuscN7tDpCFfPgQLY2WcaeyRKRar9Bqr5dAbJ8DozhAxVdwY/3ggztb/Pb Cc: "Rodney W. Grimes" , freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 18:04:11 -0000 On Nov 16, 2012, at 11:03 AM, Adrian Chadd wrote: > On 16 November 2012 10:01, Warner Losh wrote: >>=20 >> On Nov 16, 2012, at 10:35 AM, Rodney W. Grimes wrote: >>=20 >>> This should be cleaned up better than that, what -kind- of uart is = it? >>> There should be things called >>> uart_8250 (should be able to drive everything from 8250 to = 16950) >>> uart_8530 (this is probalby the second most common uart in the = world) >>> uart_6850 (we would probably never see one of these) >>> etc... >>>=20 >>> Please do not lock this to a specific Mips chip if at all possible >>=20 >> uart already services a dozen of other UARTs. It isn't tied to MIPS = at all. All Adrian seems to be doing is making what was automatic = configuration a little more manual. >=20 > Well, strictly speaking yes. But what I'll do later is make a > 'uart_core' and then allow my MIPS platforms to only register the > uart(s) they need. >=20 > Right now it includes all of the uarts in sys/dev/uart/. They're not > separate devices. This must be a mips-specific thing, since on arm you only get what you = ask for. Warner