diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2017-07-11 10:52:19 -0600 |
---|---|---|
committer | Marc Jones <marc@marcjonesconsulting.com> | 2017-07-25 15:11:41 +0000 |
commit | 87863fd69242f104ab756ac7a774593b9a644759 (patch) | |
tree | 1eb7c7fecfd24bbf4638bcd4d1f7a27291323229 /src/mainboard/amd | |
parent | 6d2cbb9e58b704389f948c2c97cfb3a3067cfeda (diff) |
amd/gardenia: Fix IS_ENABLED for xHCI
Convert from #if to if().
Change-Id: I7c149856da22b72d2a83bd7f06d031df328dbb35
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/20745
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard/amd')
-rw-r--r-- | src/mainboard/amd/gardenia/BiosCallOuts.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mainboard/amd/gardenia/BiosCallOuts.c b/src/mainboard/amd/gardenia/BiosCallOuts.c index 2c87ccec19..9b28786ad5 100644 --- a/src/mainboard/amd/gardenia/BiosCallOuts.c +++ b/src/mainboard/amd/gardenia/BiosCallOuts.c @@ -97,11 +97,10 @@ AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr) #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; |