Fix read_option invocation in uart8250mem.c

read_option was unified between ramstage and romstage a while ago.
However, it seems some invocations were not fixed accordingly.
This patch switches uart8250mem.c to use the new scheme.

Change-Id: I03cef4f6ee9188a6412c61d7ed34fbaff808a32b
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/3033
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Stefan Reinauer 2013-04-05 13:51:11 -07:00 committed by Ronald G. Minnich
parent 84463efb94
commit bb2cc71480
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ u32 uart_mem_init(void)
static const unsigned baud[8] = { 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200 }; static const unsigned baud[8] = { 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200 };
unsigned b_index = 0; unsigned b_index = 0;
#if defined(__PRE_RAM__) #if defined(__PRE_RAM__)
b_index = read_option(CMOS_VSTART_baud_rate, CMOS_VLEN_baud_rate, 0); b_index = read_option(baud_rate, 0);
b_index &= 7; b_index &= 7;
uart_baud = baud[b_index]; uart_baud = baud[b_index];
#else #else