[coreboot-gerrit] Change in coreboot[master]: amd/bettong: Fix IS_ENABLED for xHCI

Marshall Dawson (Code Review) gerrit at coreboot.org
Thu Aug 17 02:10:06 CEST 2017


Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/21060


Change subject: amd/bettong: Fix IS_ENABLED for xHCI
......................................................................

amd/bettong: Fix IS_ENABLED for xHCI

Convert from #if to if().

Change-Id: Icf6db485735cb8bbadb3e742a079d0bafaacd79c
Signed-off-by: Marshall Dawson <marshalldawson3rd at gmail.com>
---
M src/mainboard/amd/bettong/BiosCallOuts.c
1 file changed, 5 insertions(+), 5 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/21060/1

diff --git a/src/mainboard/amd/bettong/BiosCallOuts.c b/src/mainboard/amd/bettong/BiosCallOuts.c
index facfd7e..b251a5a 100644
--- a/src/mainboard/amd/bettong/BiosCallOuts.c
+++ b/src/mainboard/amd/bettong/BiosCallOuts.c
@@ -76,11 +76,11 @@
 			oem_fan_control(FchParams_env);
 
 		/* XHCI configuration */
-#if IS_ENABLED(CONFIG_HUDSON_XHCI_ENABLE)
-		FchParams_env->Usb.Xhci0Enable = TRUE;
-#else
-		FchParams_env->Usb.Xhci0Enable = FALSE;
-#endif
+		if (IS_ENABLED(CONFIG_HUDSON_XHCI_ENABLE))
+			FchParams_env->Usb.Xhci0Enable = TRUE;
+		else
+			FchParams_env->Usb.Xhci0Enable = FALSE;
+
 		FchParams_env->Usb.Xhci1Enable = FALSE;
 		FchParams_env->Usb.USB30PortInit = 8; /* 8: If USB3 port is unremoveable. */
 

-- 
To view, visit https://review.coreboot.org/21060
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icf6db485735cb8bbadb3e742a079d0bafaacd79c
Gerrit-Change-Number: 21060
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170817/2ed34903/attachment.html>


More information about the coreboot-gerrit mailing list