[LinuxBIOS] patch for EPIA vt8231_early_serial.c

Peter Stuge stuge-linuxbios at cdy.org
Mon May 21 22:25:34 CEST 2007


On Mon, May 21, 2007 at 08:51:17PM +0100, Ben Hewson wrote:
> +	/* enable fifo's */
> +	outb(0x01, TTYS0_BASE + UART_FCR);
> +	/* assert DTR and RTS so the other end is happy */
> +	outb(0x03, TTYS0_BASE + UART_MCR);
> +	/* Set Baud Rate Divisor to 1 ==> 115200 Baud */
> +	outb(0x80 | TTYS0_LCS, TTYS0_BASE + UART_LCR);

No defines for all these "magic" values?


> +	outb(TTYS0_LCS, TTYS0_BASE + UART_LCR);	

TTYS0_LCS is not very clear as to what it does, but at least it's a
define. :)


//Peter




More information about the coreboot mailing list