summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2013-04-05 13:51:11 -0700
committerRonald G. Minnich <rminnich@gmail.com>2013-04-08 21:36:01 +0200
commitbb2cc714809150e1f1d6a502e29ef524232ee7a9 (patch)
treea14d54433f83635b6157781d89179f1fb30ac3ec
parent84463efb9448425c9c498425a4fc80b53ed5db73 (diff)
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>
-rw-r--r--src/lib/uart8250mem.c2
1 files changed, 1 insertions, 1 deletions
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