From 6e74b2cbacac19443c62cffa53ca5636e7ab248b Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Tue, 16 Dec 2014 07:34:58 +0200 Subject: AGESA: Add OemCustomize hooks structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://review.coreboot.org/7824 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- src/mainboard/supermicro/h8qgi/BiosCallOuts.c | 4 ++++ src/mainboard/supermicro/h8scm/BiosCallOuts.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'src/mainboard/supermicro') diff --git a/src/mainboard/supermicro/h8qgi/BiosCallOuts.c b/src/mainboard/supermicro/h8qgi/BiosCallOuts.c index 15244b519c..06b2f3e4f2 100644 --- a/src/mainboard/supermicro/h8qgi/BiosCallOuts.c +++ b/src/mainboard/supermicro/h8qgi/BiosCallOuts.c @@ -19,6 +19,7 @@ #include "AGESA.h" #include "amdlib.h" +#include #include #include "Ids.h" #include "OptionsIds.h" @@ -109,3 +110,6 @@ static AGESA_STATUS board_ReadSpd (UINT32 Func, UINT32 Data, VOID *ConfigPtr) return Status; } + +const struct OEM_HOOK OemCustomize = { +}; diff --git a/src/mainboard/supermicro/h8scm/BiosCallOuts.c b/src/mainboard/supermicro/h8scm/BiosCallOuts.c index 5d5b1bdf78..58908c90c8 100644 --- a/src/mainboard/supermicro/h8scm/BiosCallOuts.c +++ b/src/mainboard/supermicro/h8scm/BiosCallOuts.c @@ -19,6 +19,7 @@ #include "AGESA.h" #include "amdlib.h" +#include #include #include "Ids.h" #include "OptionsIds.h" @@ -40,3 +41,6 @@ const BIOS_CALLOUT_STRUCT BiosCallouts[] = {AGESA_HOOKBEFORE_EXIT_SELF_REF, agesa_NoopSuccess }, }; const int BiosCalloutsLen = ARRAY_SIZE(BiosCallouts); + +const struct OEM_HOOK OemCustomize = { +}; -- cgit v1.2.3