diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2011-05-10 21:53:13 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2011-05-10 21:53:13 +0000 |
commit | b251753b4fae1e827f5398daf679773eba643dce (patch) | |
tree | 3e5f0b12e9a036f36c7c8bdffab8845637748453 /src/lib/uart8250.c | |
parent | 6649d9740d79b8c52d40218d78393547aaad7548 (diff) | |
download | coreboot-b251753b4fae1e827f5398daf679773eba643dce.tar.xz |
Change read_option() to a macro that wraps some API uglyness
Simplify
read_option(CMOS_VSTART_foo, CMOS_VLEN_foo, somedefault)
to
read_option(foo, somedefault)
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6565 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib/uart8250.c')
-rw-r--r-- | src/lib/uart8250.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/uart8250.c b/src/lib/uart8250.c index 49dc59105b..64e8854ef5 100644 --- a/src/lib/uart8250.c +++ b/src/lib/uart8250.c @@ -99,7 +99,7 @@ void uart_init(void) static const unsigned char divisor[8] = { 1, 2, 3, 6, 12, 24, 48, 96 }; 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; div = divisor[b_index]; #else |