diff options
author | Eric Biederman <ebiederm@xmission.com> | 2003-06-10 21:25:29 +0000 |
---|---|---|
committer | Eric Biederman <ebiederm@xmission.com> | 2003-06-10 21:25:29 +0000 |
commit | c927b022c23a55e84d5d6aaac1deb7b95e25a878 (patch) | |
tree | 35eb8b6a1431e91fd011ec15c02edf6ab4ec77cc /src | |
parent | 6aa31cc754744a83177ea922e71c6bdf02cad5df (diff) | |
download | coreboot-c927b022c23a55e84d5d6aaac1deb7b95e25a878.tar.xz |
- Update romcc to version 0.27
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@866 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r-- | src/pc80/serial.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/pc80/serial.c b/src/pc80/serial.c index b10d22dcba..c2788d6ec7 100644 --- a/src/pc80/serial.c +++ b/src/pc80/serial.c @@ -74,20 +74,18 @@ static void uart_init(void) outb(0x01, TTYS0_BASE + UART_FCR); /* Set Baud Rate Divisor to 12 ==> 115200 Baud */ outb(0x80 | UART_LCS, TTYS0_BASE + UART_LCR); -#if 0 && USE_OPTION_TABLE == 1 - { - static const unsigned char divisor[] = { 1,2,3,6,12,24,48,96 }; - unsigned ttys0_div, ttys0_index; - outb(RTC_BOOT_BYTE + 1, 0x70); - ttys0_index = inb(0x71); - ttys0_index &= 7; - ttys0_div = divisor[ttys0_index]; - outb(ttys0_div & 0xff, TTYS0_BASE + UART_DLL); - outb(0, TTYS0_BASE + UART_DLM); - } +#if USE_OPTION_TABLE == 1 + static const unsigned char divisor[] = { 1,2,3,6,12,24,48,96 }; + unsigned ttys0_div, ttys0_index; + outb(RTC_BOOT_BYTE + 1, 0x70); + ttys0_index = inb(0x71); + ttys0_index &= 7; + ttys0_div = divisor[ttys0_index]; + outb(ttys0_div & 0xff, TTYS0_BASE + UART_DLL); + outb(0, TTYS0_BASE + UART_DLM); #else - outb(TTYS0_DIV & 0xFF, TTYS0_BASE + UART_DLL); - outb((TTYS0_DIV >> 8) & 0xFF, TTYS0_BASE + UART_DLM); + outb(TTYS0_DIV & 0xFF, TTYS0_BASE + UART_DLL); + outb((TTYS0_DIV >> 8) & 0xFF, TTYS0_BASE + UART_DLM); #endif outb(UART_LCS, TTYS0_BASE + UART_LCR); } |