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>
This commit is contained in:
Angel Pons 2020-11-02 20:58:20 +01:00 committed by Patrick Georgi
parent 62719a3797
commit f79030c6ba
1 changed files with 3 additions and 6 deletions

View File

@ -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 = {