diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2011-04-14 22:28:00 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2011-04-14 22:28:00 +0000 |
commit | 24ef134b37131064a6f45a221b6478e55f0a38ca (patch) | |
tree | 8d6bfe6c51385a0eea20cbe5b5a9a1fbe50edd5e /src/lib/uart8250.c | |
parent | 40e42a824b2800ed90614f3a5d3e5edf7cb877ff (diff) |
drop half an uart8250 implementation from smiutil and use the common code
for that instead. This also allows using non-uart8250 consoles for smi
debugging.
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6501 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib/uart8250.c')
-rw-r--r-- | src/lib/uart8250.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/uart8250.c b/src/lib/uart8250.c index 28989b24ee..8149b03aa6 100644 --- a/src/lib/uart8250.c +++ b/src/lib/uart8250.c @@ -103,10 +103,10 @@ void init_uart8250(unsigned base_port, struct uart8250 *uart) } #endif -#ifdef __PRE_RAM__ +#if defined(__PRE_RAM__) || defined(__SMM__) void uart_init(void) { -#if CONFIG_USE_OPTION_TABLE +#if CONFIG_USE_OPTION_TABLE && !defined(__SMM__) static const unsigned char divisor[] = { 1, 2, 3, 6, 12, 24, 48, 96 }; unsigned ttys0_div, ttys0_index; ttys0_index = read_option(CMOS_VSTART_baud_rate, CMOS_VLEN_baud_rate, 0); |