- Update romcc to version 0.27

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@866 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman 2003-06-10 21:25:29 +00:00
parent 6aa31cc754
commit c927b022c2
1 changed files with 11 additions and 13 deletions

View File

@ -74,8 +74,7 @@ static void uart_init(void)
outb(0x01, TTYS0_BASE + UART_FCR); outb(0x01, TTYS0_BASE + UART_FCR);
/* Set Baud Rate Divisor to 12 ==> 115200 Baud */ /* Set Baud Rate Divisor to 12 ==> 115200 Baud */
outb(0x80 | UART_LCS, TTYS0_BASE + UART_LCR); outb(0x80 | UART_LCS, TTYS0_BASE + UART_LCR);
#if 0 && USE_OPTION_TABLE == 1 #if USE_OPTION_TABLE == 1
{
static const unsigned char divisor[] = { 1,2,3,6,12,24,48,96 }; static const unsigned char divisor[] = { 1,2,3,6,12,24,48,96 };
unsigned ttys0_div, ttys0_index; unsigned ttys0_div, ttys0_index;
outb(RTC_BOOT_BYTE + 1, 0x70); outb(RTC_BOOT_BYTE + 1, 0x70);
@ -84,7 +83,6 @@ static void uart_init(void)
ttys0_div = divisor[ttys0_index]; ttys0_div = divisor[ttys0_index];
outb(ttys0_div & 0xff, TTYS0_BASE + UART_DLL); outb(ttys0_div & 0xff, TTYS0_BASE + UART_DLL);
outb(0, TTYS0_BASE + UART_DLM); outb(0, TTYS0_BASE + UART_DLM);
}
#else #else
outb(TTYS0_DIV & 0xFF, TTYS0_BASE + UART_DLL); outb(TTYS0_DIV & 0xFF, TTYS0_BASE + UART_DLL);
outb((TTYS0_DIV >> 8) & 0xFF, TTYS0_BASE + UART_DLM); outb((TTYS0_DIV >> 8) & 0xFF, TTYS0_BASE + UART_DLM);