diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-11-02 22:49:51 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-21 09:06:30 +0000 |
commit | f8a5eb2e4afc190214ba5f1766998a1812f69a40 (patch) | |
tree | aa8b375900a20bd721ceb113fe335110e47684de /src/mainboard/lenovo | |
parent | 0b7813fe97121eb7cb9c0b8ac59e604e9f613679 (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/lenovo')
-rw-r--r-- | src/mainboard/lenovo/t430s/variants/t430s/romstage.c | 4 | ||||
-rw-r--r-- | src/mainboard/lenovo/t440p/romstage.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/mainboard/lenovo/t430s/variants/t430s/romstage.c b/src/mainboard/lenovo/t430s/variants/t430s/romstage.c index 349d71e52b..ff041e7d49 100644 --- a/src/mainboard/lenovo/t430s/variants/t430s/romstage.c +++ b/src/mainboard/lenovo/t430s/variants/t430s/romstage.c @@ -33,9 +33,7 @@ void mainboard_get_spd(spd_raw_data *spd, bool id_only) void mainboard_early_init(int s3resume) { - u8 enable_peg; - if (get_option(&enable_peg, "enable_dual_graphics") != CB_SUCCESS) - enable_peg = 0; + u8 enable_peg = get_int_option("enable_dual_graphics", 0); bool power_en = pmh7_dgpu_power_state(); diff --git a/src/mainboard/lenovo/t440p/romstage.c b/src/mainboard/lenovo/t440p/romstage.c index 27908c1d98..817797f67e 100644 --- a/src/mainboard/lenovo/t440p/romstage.c +++ b/src/mainboard/lenovo/t440p/romstage.c @@ -22,9 +22,7 @@ void mainboard_config_rcba(void) void mb_late_romstage_setup(void) { - u8 enable_peg; - if (get_option(&enable_peg, "enable_dual_graphics") != CB_SUCCESS) - enable_peg = 0; + u8 enable_peg = get_int_option("enable_dual_graphics", 0); bool power_en = pmh7_dgpu_power_state(); |