diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-12-16 07:34:58 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-12-20 07:26:01 +0100 |
commit | 6e74b2cbacac19443c62cffa53ca5636e7ab248b (patch) | |
tree | 226aff94c58b6b28a22f2ad9b2bc98449c10af8d /src/mainboard/amd/dinar | |
parent | 1ef67e166a7e560db4652923cdaf2d55af2f2a0e (diff) | |
download | coreboot-6e74b2cbacac19443c62cffa53ca5636e7ab248b.tar.xz |
AGESA: Add OemCustomize hooks structure
We should potentially provide an OEM platform hook to manipulate parameters
around any entry point to AGESA. Use structure for such ops to avoid weak
functions and lots of empty function stubs.
Change-Id: I99bf7de8a1e2f183399d2216520a45d0c24fd64c
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/7824
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/mainboard/amd/dinar')
-rw-r--r-- | src/mainboard/amd/dinar/BiosCallOuts.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/amd/dinar/BiosCallOuts.c b/src/mainboard/amd/dinar/BiosCallOuts.c index 4e0e3b905a..dee4920b53 100644 --- a/src/mainboard/amd/dinar/BiosCallOuts.c +++ b/src/mainboard/amd/dinar/BiosCallOuts.c @@ -19,6 +19,7 @@ #include "AGESA.h" #include "amdlib.h" +#include <northbridge/amd/agesa/agesawrapper.h> #include <northbridge/amd/agesa/BiosCallOuts.h> #include "Ids.h" #include "OptionsIds.h" @@ -115,3 +116,15 @@ static AGESA_STATUS board_ReadSpd (UINT32 Func, UINT32 Data, VOID *ConfigPtr) return Status; } + +static AGESA_STATUS OemInitPost(AMD_POST_PARAMS *InitPost) +{ + InitPost->MemConfig.UmaMode = UMA_AUTO; + InitPost->MemConfig.BottomIo = 0xE0; + InitPost->MemConfig.UmaSize = 0xE0-0xC0; + return AGESA_SUCCESS; +} + +const struct OEM_HOOK OemCustomize = { + .InitPost = OemInitPost, +}; |