diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2017-08-16 17:33:11 -0600 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2017-08-24 11:33:44 +0000 |
commit | 9e741bb218aba8fde1e8967188b4588821aeb288 (patch) | |
tree | 748a69042e78175ea54929eb88fdede4a5b4c12f /src/mainboard/amd/bettong/BiosCallOuts.c | |
parent | 08f7d1ae0d38e14cf738167f73c4873a77a93633 (diff) | |
download | coreboot-9e741bb218aba8fde1e8967188b4588821aeb288.tar.xz |
amd/bettong: Fix IS_ENABLED for xHCI
Convert from #if to if().
Change-Id: Icf6db485735cb8bbadb3e742a079d0bafaacd79c
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/21060
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/mainboard/amd/bettong/BiosCallOuts.c')
-rw-r--r-- | src/mainboard/amd/bettong/BiosCallOuts.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mainboard/amd/bettong/BiosCallOuts.c b/src/mainboard/amd/bettong/BiosCallOuts.c index a2bd36d4a6..4f09e8dc52 100644 --- a/src/mainboard/amd/bettong/BiosCallOuts.c +++ b/src/mainboard/amd/bettong/BiosCallOuts.c @@ -79,11 +79,11 @@ AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr) #endif /* 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. */ |