summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee/BiosCallOuts.c
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2017-07-25 18:55:44 -0600
committerMartin Roth <martinroth@google.com>2017-07-27 21:33:16 +0000
commit5f339163b09a8d4be4d82bfe4921edef33425303 (patch)
tree6f84199d2d5cc19d8a2deb54e0394816246285a2 /src/mainboard/google/kahlee/BiosCallOuts.c
parent6b75ee2220d66815f7f4f2ce32f04b74ded9685f (diff)
downloadcoreboot-5f339163b09a8d4be4d82bfe4921edef33425303.tar.xz
google/kahlee: Pass GPIO setting in amdinitenv
GPIOs for I2C3 were being unset in amdinitmid if the GPIO enable table wasn't passed. It had been initialy set in amdinitreset. Pull the GPIO settings into their own file that can be used in bootblock and later stages. Change-Id: I41cd7873f8c8543c95ad8653e0a3887f7d0487a2 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/19839 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/kahlee/BiosCallOuts.c')
-rw-r--r--src/mainboard/google/kahlee/BiosCallOuts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/google/kahlee/BiosCallOuts.c b/src/mainboard/google/kahlee/BiosCallOuts.c
index 357cf10597..c65c930d08 100644
--- a/src/mainboard/google/kahlee/BiosCallOuts.c
+++ b/src/mainboard/google/kahlee/BiosCallOuts.c
@@ -19,6 +19,8 @@
#include <soc/hudson.h>
#include <stdlib.h>
+extern const GPIO_CONTROL oem_kahlee_gpio[];
+
static AGESA_STATUS fch_initenv(UINT32 Func, UINTN FchData, VOID *ConfigPtr)
{
AMD_CONFIG_PARAMS *StdHeader = ConfigPtr;
@@ -26,6 +28,7 @@ static AGESA_STATUS fch_initenv(UINT32 Func, UINTN FchData, VOID *ConfigPtr)
if (StdHeader->Func == AMD_INIT_ENV) {
FCH_DATA_BLOCK *FchParams_env = (FCH_DATA_BLOCK *)FchData;
printk(BIOS_DEBUG, "Fch OEM config in INIT ENV ");
+ FchParams_env->PostOemGpioTable = oem_kahlee_gpio;
/* XHCI configuration */
if (IS_ENABLED(CONFIG_STONEYRIDGE_XHCI_ENABLE))