aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/include/amdblocks/dimm_spd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/block/include/amdblocks/dimm_spd.h')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/dimm_spd.h10
1 files changed, 6 insertions, 4 deletions
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 <stddef.h>
#include <stdint.h>
-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