summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-02 20:58:20 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-04-21 09:00:38 +0000
commitf79030c6ba066d904c0ef6ddcc2483ed60ff7731 (patch)
tree5acc9eaaadfea97012e12271df526d89dd23c506 /src
parent62719a379776efdde3439f053363170133fd8e69 (diff)
mb/asus/p8z77-m_pro: Use get_int_option()
Change-Id: If75f307c862b24e9208568cdba0a0b05ab4009bf Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47110 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/asus/p8z77-m_pro/early_init.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mainboard/asus/p8z77-m_pro/early_init.c b/src/mainboard/asus/p8z77-m_pro/early_init.c
index 4e41d01bc7..d7125d62e5 100644
--- a/src/mainboard/asus/p8z77-m_pro/early_init.c
+++ b/src/mainboard/asus/p8z77-m_pro/early_init.c
@@ -69,18 +69,15 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
* 3 = Smart Auto : same than Auto, but if OS loads USB3 driver
* and reboots, it will keep the USB3.0 speed
*/
- int usb3_mode = 1;
- get_option(&usb3_mode, "usb3_mode");
+ int usb3_mode = get_int_option("usb3_mode", 1);
usb3_mode &= 0x3; /* ensure it's 0/1/2/3 only */
/* Load USB3 pre-OS xHCI driver */
- int usb3_drv = 1;
- get_option(&usb3_drv, "usb3_drv");
+ int usb3_drv = get_int_option("usb3_drv", 1);
usb3_drv &= 0x1; /* ensure it's 0/1 only */
/* Use USB3 xHCI streams */
- int usb3_streams = 1;
- get_option(&usb3_streams, "usb3_streams");
+ int usb3_streams = get_int_option("usb3_streams", 1);
usb3_streams &= 0x1; /* ensure it's 0/1 only */
struct pei_data pd = {