summaryrefslogtreecommitdiff
path: root/src/mainboard/kontron/bsl6
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/kontron/bsl6')
-rw-r--r--src/mainboard/kontron/bsl6/romstage.c3
-rw-r--r--src/mainboard/kontron/bsl6/variants/boxer26/romstage.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/kontron/bsl6/romstage.c b/src/mainboard/kontron/bsl6/romstage.c
index 0cb7b06375..c5cba4d02c 100644
--- a/src/mainboard/kontron/bsl6/romstage.c
+++ b/src/mainboard/kontron/bsl6/romstage.c
@@ -38,7 +38,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
memory_params->DqPinsInterleaved = true;
- get_option(&memory_params->HyperThreading, "hyper_threading");
+ const uint8_t ht = get_int_option("hyper_threading", memory_params->HyperThreading);
+ memory_params->HyperThreading = ht;
variant_memory_init_params(mupd);
}
diff --git a/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c b/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c
index f1409e0b42..d352522e90 100644
--- a/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c
+++ b/src/mainboard/kontron/bsl6/variants/boxer26/romstage.c
@@ -13,9 +13,8 @@ void variant_memory_init_params(FSPM_UPD *const mupd)
unsigned int i;
for (i = 0; i < 3; ++i) {
- u8 eth_enable = 1;
nvram_var[sizeof(nvram_var) - 2] = '1' + i;
- get_option(&eth_enable, nvram_var);
+ u8 eth_enable = get_int_option(nvram_var, 1);
if (!eth_enable) {
printk(BIOS_INFO, "Disabling ethernet%u.\n", 1 + i);
mupd->FspmConfig.PcieRpEnableMask &= ~(1 << (i + 8));