From a9f72776bd5af067abf8bfc4bcdd44ec805c9e76 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Thu, 16 Nov 2017 18:47:36 -0700 Subject: soc/amd/stoneyridge: Add mainboard call for SPD values Add a mainboard function call to write the AGESA SPD buffer. Removes the unneccesary dimm_spd.c file. BUG=b:67845441 Change-Id: Id42622008b49b4559e648a7fa1bfd9f26e1f56a4 Signed-off-by: Marc Jones Reviewed-on: https://review.coreboot.org/22485 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Marshall Dawson --- src/soc/amd/common/block/include/amdblocks/dimm_spd.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/soc/amd/common') diff --git a/src/soc/amd/common/block/include/amdblocks/dimm_spd.h b/src/soc/amd/common/block/include/amdblocks/dimm_spd.h index dce5494f40..e29edc59b7 100644 --- a/src/soc/amd/common/block/include/amdblocks/dimm_spd.h +++ b/src/soc/amd/common/block/include/amdblocks/dimm_spd.h @@ -20,10 +20,12 @@ #include #include -AGESA_STATUS -AmdMemoryReadSPD(IN UINT32 Func, IN UINTN Data, - IN OUT AGESA_READ_SPD_PARAMS *SpdData); - +/* + * Fill the buf and returns 0 on success. + * Return -1 on failure and the the caller tries sb_read_spd() + * to get the SPD from I2C. + */ +int mainboard_read_spd(uint8_t spdAddress, char *buf, size_t len); int sb_read_spd(uint8_t spdAddress, char *buf, size_t len); #endif -- cgit v1.2.3