diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-19 08:41:50 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-20 12:47:44 +0000 |
commit | 5be75d5311695316f0d34448b98299cbe8b91ea5 (patch) | |
tree | 4c51d81915c6575fc169ac51635f4875d212ed4e /src/mainboard/amd/bettong | |
parent | 830e0de40187183c34a1f558d83b65068b649e2a (diff) |
AGESA,binaryPI: Replace use of __PRE_RAM__
Change-Id: Id878fd33ec3d2de640d9a488058a805be3ccd223
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34997
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/mainboard/amd/bettong')
-rw-r--r-- | src/mainboard/amd/bettong/BiosCallOuts.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainboard/amd/bettong/BiosCallOuts.c b/src/mainboard/amd/bettong/BiosCallOuts.c index d318d0c43f..e9836904d3 100644 --- a/src/mainboard/amd/bettong/BiosCallOuts.c +++ b/src/mainboard/amd/bettong/BiosCallOuts.c @@ -117,9 +117,11 @@ AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr) static AGESA_STATUS board_ReadSpd(UINT32 Func, UINTN Data, VOID *ConfigPtr) { -#ifdef __PRE_RAM__ - int spdAddress; AGESA_READ_SPD_PARAMS *info = ConfigPtr; + int spdAddress; + + if (!ENV_ROMSTAGE) + return AGESA_UNSUPPORTED; DEVTREE_CONST struct device *dev = pcidev_on_root(0x18, 2); @@ -154,6 +156,6 @@ static AGESA_STATUS board_ReadSpd(UINT32 Func, UINTN Data, VOID *ConfigPtr) int err = hudson_readSpd(spdAddress, (void *) info->Buffer, 128); if (err) return AGESA_ERROR; -#endif + return AGESA_SUCCESS; } |