Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2007 12:52:01 +0300
From:      Oleksandr Tymoshenko <gonzo@pbxpress.com>
To:        Talha Lateef <talhastoneager@gmail.com>, freebsd-mips@freebsd.org
Subject:   Re: multiple uarts
Message-ID:  <46CD58C1.5070204@pbxpress.com>
In-Reply-To: <5bcfed510708230016l3347e914rce9fff362ace4a13@mail.gmail.com>
References:  <5bcfed510708230016l3347e914rce9fff362ace4a13@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Talha Lateef wrote:
> Hi there
> 
> I am a newbie on freebsd mips, I have a mips4k based board which has 2 uarts
> i wanted to use uart1 as standard port not for debugging purposes i would
> also like to try shifting console on it
> is it possible ? are there sample code for any boards available, any help
> would be appreciated.
	What kind of board do you have and what kind of uart is it. If your
uart is supported by FreeBSD, e.g.: it's ns8250-compatible or something,
try looking at malta/uart* files. If it's something unsupported - there are
two ways. The first one and the simplest one is to implement CONSOLE_DRIVER
interface like in adm5120/console.c, though you'll get output from kernel
only. The second one is to implement whole uart interface as in adm5120/uart_*
files.

-- 
gonzo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46CD58C1.5070204>