diff options
-rw-r--r-- | src/northbridge/amd/pi/agesawrapper.c | 4 | ||||
-rw-r--r-- | src/northbridge/amd/pi/agesawrapper.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/northbridge/amd/pi/agesawrapper.c b/src/northbridge/amd/pi/agesawrapper.c index ec435399ee..b1e514a145 100644 --- a/src/northbridge/amd/pi/agesawrapper.c +++ b/src/northbridge/amd/pi/agesawrapper.c @@ -26,6 +26,8 @@ VOID FchInitS3LateRestore (IN FCH_DATA_BLOCK *FchDataPtr); VOID FchInitS3EarlyRestore (IN FCH_DATA_BLOCK *FchDataPtr); +void __attribute__((weak)) OemPostParams(AMD_POST_PARAMS *PostParams) {} + #define FILECODE UNASSIGNED_FILE_FILECODE #ifndef __PRE_RAM__ @@ -132,6 +134,8 @@ AGESA_STATUS agesawrapper_amdinitpost(void) AmdCreateStruct (&AmdParamStruct); PostParams = (AMD_POST_PARAMS *)AmdParamStruct.NewStructPtr; + OemPostParams(PostParams); + // Do not use IS_ENABLED here. CONFIG_GFXUMA should always have a value. Allow // the compiler to flag the error if CONFIG_GFXUMA is not set. PostParams->MemConfig.UmaMode = CONFIG_GFXUMA ? UMA_AUTO : UMA_NONE; diff --git a/src/northbridge/amd/pi/agesawrapper.h b/src/northbridge/amd/pi/agesawrapper.h index cba7dc6dea..811d904f87 100644 --- a/src/northbridge/amd/pi/agesawrapper.h +++ b/src/northbridge/amd/pi/agesawrapper.h @@ -58,4 +58,6 @@ VOID amd_initcpuio(void); VOID amd_initmmio(void); const void *agesawrapper_locate_module (const CHAR8 name[8]); +void OemPostParams(AMD_POST_PARAMS *PostParams); + #endif /* _AGESAWRAPPER_H_ */ |