Replace last uses of read_option() with get_option()
Change-Id: I63e80953195a6c524392da42b268efe3012ed41b Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37953 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
c5a5b369a8
commit
bee82ab798
|
@ -50,8 +50,10 @@ void mainboard_pre_raminit_config(int s3_resume)
|
||||||
void mainboard_lpc_decode(void)
|
void mainboard_lpc_decode(void)
|
||||||
{
|
{
|
||||||
int lpt_en = 0;
|
int lpt_en = 0;
|
||||||
if (read_option(lpt, 0) != 0)
|
u8 val;
|
||||||
lpt_en = LPT_LPC_EN;
|
|
||||||
|
if (get_option(&val, "lpt") == CB_SUCCESS && val)
|
||||||
|
lpt_en = LPT_LPC_EN; /* enable LPT */
|
||||||
|
|
||||||
// decode range
|
// decode range
|
||||||
pci_write_config16(PCI_DEV(0, 0x1f, 0), LPC_IO_DEC, 0x0007);
|
pci_write_config16(PCI_DEV(0, 0x1f, 0), LPC_IO_DEC, 0x0007);
|
||||||
|
|
|
@ -29,7 +29,9 @@
|
||||||
void mainboard_lpc_decode(void)
|
void mainboard_lpc_decode(void)
|
||||||
{
|
{
|
||||||
int lpt_en = 0;
|
int lpt_en = 0;
|
||||||
if (read_option(lpt, 0) != 0)
|
u8 val;
|
||||||
|
|
||||||
|
if (get_option(&val, "lpt") == CB_SUCCESS && val)
|
||||||
lpt_en = LPT_LPC_EN; /* enable LPT */
|
lpt_en = LPT_LPC_EN; /* enable LPT */
|
||||||
|
|
||||||
pci_update_config16(PCI_DEV(0, 0x1f, 0), LPC_EN, ~LPT_LPC_EN, lpt_en);
|
pci_update_config16(PCI_DEV(0, 0x1f, 0), LPC_EN, ~LPT_LPC_EN, lpt_en);
|
||||||
|
|
|
@ -32,7 +32,9 @@
|
||||||
void mainboard_lpc_decode(void)
|
void mainboard_lpc_decode(void)
|
||||||
{
|
{
|
||||||
int lpt_en = 0;
|
int lpt_en = 0;
|
||||||
if (read_option(lpt, 0) != 0)
|
u8 val;
|
||||||
|
|
||||||
|
if (get_option(&val, "lpt") == CB_SUCCESS && val)
|
||||||
lpt_en = LPT_LPC_EN; /* enable LPT */
|
lpt_en = LPT_LPC_EN; /* enable LPT */
|
||||||
|
|
||||||
pci_write_config16(PCI_DEV(0, 0x1f, 0), LPC_IO_DEC, 0x0007);
|
pci_write_config16(PCI_DEV(0, 0x1f, 0), LPC_IO_DEC, 0x0007);
|
||||||
|
|
Loading…
Reference in New Issue