From bb2cc714809150e1f1d6a502e29ef524232ee7a9 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 5 Apr 2013 13:51:11 -0700 Subject: 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 Reviewed-on: http://review.coreboot.org/3033 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/lib/uart8250mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/uart8250mem.c b/src/lib/uart8250mem.c index b98cb0e2a1..82248436d3 100644 --- a/src/lib/uart8250mem.c +++ b/src/lib/uart8250mem.c @@ -116,7 +116,7 @@ u32 uart_mem_init(void) static const unsigned baud[8] = { 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200 }; unsigned b_index = 0; #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; uart_baud = baud[b_index]; #else -- cgit v1.2.3