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>
This commit is contained in:
committed by
Martin Roth
parent
6b75ee2220
commit
5f339163b0
@@ -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))
|
||||
|
Reference in New Issue
Block a user