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
This commit is contained in:
parent
6649d9740d
commit
b251753b4f
15 changed files with 24 additions and 23 deletions
|
|
@ -70,7 +70,7 @@ void setup_ich7_gpios(void)
|
|||
static void ich7_enable_lpc(void)
|
||||
{
|
||||
int lpt_en = 0;
|
||||
if (read_option(CMOS_VSTART_lpt, CMOS_VLEN_lpt, 0) != 0) {
|
||||
if (read_option(lpt, 0) != 0) {
|
||||
lpt_en = 1<<2; // enable LPT
|
||||
}
|
||||
// Enable Serial IRQ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue