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

Marshall Dawson (Code Review) gerrit at coreboot.org
Mon Jul 24 15:01:37 CEST 2017


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


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

amd/gardenia: Fix IS_ENABLED for xHCI

Convert from #if to if().

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



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/20745/1

diff --git a/src/mainboard/amd/gardenia/BiosCallOuts.c b/src/mainboard/amd/gardenia/BiosCallOuts.c
index 2c87cce..9b28786 100644
--- a/src/mainboard/amd/gardenia/BiosCallOuts.c
+++ b/src/mainboard/amd/gardenia/BiosCallOuts.c
@@ -97,11 +97,10 @@
 #endif
 
 		/* XHCI configuration */
-#if IS_ENABLED(CONFIG_STONEYRIDGE_XHCI_ENABLE)
-		FchParams_env->Usb.Xhci0Enable = TRUE;
-#else
-		FchParams_env->Usb.Xhci0Enable = FALSE;
-#endif
+		if (IS_ENABLED(CONFIG_STONEYRIDGE_XHCI_ENABLE))
+			FchParams_env->Usb.Xhci0Enable = TRUE;
+		else
+			FchParams_env->Usb.Xhci0Enable = FALSE;
 		FchParams_env->Usb.Xhci1Enable = FALSE;
 		/* 8: If USB3 port is unremoveable. */
 		FchParams_env->Usb.USB30PortInit = 8;

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

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7c149856da22b72d2a83bd7f06d031df328dbb35
Gerrit-Change-Number: 20745
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/20170724/2a246429/attachment.html>


More information about the coreboot-gerrit mailing list