summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/getac/p470/early_init.c3
-rw-r--r--src/mainboard/kontron/986lcd-m/early_init.c3
-rw-r--r--src/mainboard/roda/rk886ex/early_init.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/mainboard/getac/p470/early_init.c b/src/mainboard/getac/p470/early_init.c
index 087e279ac4..1ca9b79c1e 100644
--- a/src/mainboard/getac/p470/early_init.c
+++ b/src/mainboard/getac/p470/early_init.c
@@ -34,9 +34,8 @@ void mainboard_pre_raminit_config(int s3_resume)
void mainboard_lpc_decode(void)
{
int lpt_en = 0;
- u8 val;
- if (get_option(&val, "lpt") == CB_SUCCESS && val)
+ if (get_int_option("lpt", 0))
lpt_en = LPT_LPC_EN; /* enable LPT */
// decode range
diff --git a/src/mainboard/kontron/986lcd-m/early_init.c b/src/mainboard/kontron/986lcd-m/early_init.c
index 90221981dd..ff3babb45e 100644
--- a/src/mainboard/kontron/986lcd-m/early_init.c
+++ b/src/mainboard/kontron/986lcd-m/early_init.c
@@ -14,9 +14,8 @@
void mainboard_lpc_decode(void)
{
int lpt_en = 0;
- u8 val;
- if (get_option(&val, "lpt") == CB_SUCCESS && val)
+ if (get_int_option("lpt", 0))
lpt_en = LPT_LPC_EN; /* enable LPT */
pci_update_config16(PCI_DEV(0, 0x1f, 0), LPC_EN, ~LPT_LPC_EN, lpt_en);
diff --git a/src/mainboard/roda/rk886ex/early_init.c b/src/mainboard/roda/rk886ex/early_init.c
index 21f115cc01..8f6ceddc8b 100644
--- a/src/mainboard/roda/rk886ex/early_init.c
+++ b/src/mainboard/roda/rk886ex/early_init.c
@@ -16,9 +16,8 @@
void mainboard_lpc_decode(void)
{
int lpt_en = 0;
- u8 val;
- if (get_option(&val, "lpt") == CB_SUCCESS && val)
+ if (get_int_option("lpt", 0))
lpt_en = LPT_LPC_EN; /* enable LPT */
pci_write_config16(PCI_DEV(0, 0x1f, 0), LPC_IO_DEC, 0x0007);