From 3ff36b05cd100c178552971cc0c0bfdd0970a8fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Fri, 30 Oct 2015 16:45:21 +0200 Subject: AMD binaryPI: Allow fine-tuning platform memory configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The RDK amd/db-ft3b-lc board will use this for on-board DDR3. Change-Id: I2ffd38e7e949d3a60487e91188ddaab04b03d4b2 Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/12358 Tested-by: build bot (Jenkins) Reviewed-by: Zheng Bao --- src/northbridge/amd/pi/agesawrapper.c | 4 ++++ src/northbridge/amd/pi/agesawrapper.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src') 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_ */ -- cgit v1.2.3