diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2017-03-30 17:26:25 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2017-08-02 05:00:27 +0000 |
commit | bf201d58ebef8a037c44534a45357de157b92642 (patch) | |
tree | 4011c793517d948958058863ef58bd920bbcc7cd /src/northbridge/amd/agesa/state_machine.h | |
parent | e95b6b291ea1c9a3e85b4af9fb7255aa8395242d (diff) |
AGESA f15tn f16kb: Implement common FCH callout
This FCH_OEM_CALLOUT bypasses API and uses structures
that are private to AGESA. Attempt to clean it up by
first clarifying when it is used.
Change-Id: I63aa0f586f73e97d615b8596d73728edbaeb0a2d
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/19179
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/northbridge/amd/agesa/state_machine.h')
-rw-r--r-- | src/northbridge/amd/agesa/state_machine.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/northbridge/amd/agesa/state_machine.h b/src/northbridge/amd/agesa/state_machine.h index efa649688d..53447de507 100644 --- a/src/northbridge/amd/agesa/state_machine.h +++ b/src/northbridge/amd/agesa/state_machine.h @@ -95,4 +95,18 @@ typedef void AMD_S3SAVE_PARAMS; #endif void platform_AfterS3Save(struct sysinfo *cb, AMD_S3SAVE_PARAMS *S3Save); +/* FCH callouts, not used with CIMx. */ +#define HAS_AGESA_FCH_OEM_CALLOUT \ + IS_ENABLED(CONFIG_SOUTHBRIDGE_AMD_AGESA_HUDSON) || \ + IS_ENABLED(CONFIG_SOUTHBRIDGE_AMD_AGESA_YANGTZE) || \ + IS_ENABLED(CONFIG_SOUTHBRIDGE_AMD_AGESA_BOLTON) + +#if HAS_AGESA_FCH_OEM_CALLOUT +/* FIXME: Structures included here were supposed to be private to AGESA. */ +#include <FchCommonCfg.h> +void agesa_fch_oem_config(uintptr_t Data, AMD_CONFIG_PARAMS *StdHeader); +void board_FCH_InitReset(struct sysinfo *cb, FCH_RESET_DATA_BLOCK *FchReset); +void board_FCH_InitEnv(struct sysinfo *cb, FCH_DATA_BLOCK *FchEnv); +#endif + #endif /* _STATE_MACHINE_H_ */ |