summaryrefslogtreecommitdiff
path: root/src/mainboard/kontron/bsl6/variants
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-02 22:49:51 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-04-21 09:06:30 +0000
commitf8a5eb2e4afc190214ba5f1766998a1812f69a40 (patch)
treeaa8b375900a20bd721ceb113fe335110e47684de /src/mainboard/kontron/bsl6/variants
parent0b7813fe97121eb7cb9c0b8ac59e604e9f613679 (diff)
mainboard: Use read_int_option()
Change-Id: I9273b90b6a21b8f52fa42d9ff03a9b56eec9fcbf Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47137 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/kontron/bsl6/variants')
-rw-r--r--src/mainboard/kontron/bsl6/variants/boxer26/romstage.c3
1 files changed, 1 insertions, 2 deletions
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));