multiple uarts

Oleksandr Tymoshenko gonzo at pbxpress.com
Thu Aug 23 03:10:52 PDT 2007


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


More information about the freebsd-mips mailing list