From 8b7bda40f140e3d849a91660d2c84a4c324c8901 Mon Sep 17 00:00:00 2001 From: Mike Banon Date: Sat, 15 Aug 2020 10:30:19 +0300 Subject: nb/amd/agesa: define DDR3_SPD_SIZE as a common value Move a size of DDR3 SPD memory (always 256 bytes) to a common define. Signed-off-by: Mike Banon Change-Id: I80c89ff6e44526e1d75b0e933b21801ed17c98c0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/44498 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/northbridge/amd/agesa/family15tn/dimmSpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/northbridge/amd/agesa/family15tn') diff --git a/src/northbridge/amd/agesa/family15tn/dimmSpd.c b/src/northbridge/amd/agesa/family15tn/dimmSpd.c index 6504d1475d..70a7b92be0 100644 --- a/src/northbridge/amd/agesa/family15tn/dimmSpd.c +++ b/src/northbridge/amd/agesa/family15tn/dimmSpd.c @@ -39,7 +39,7 @@ AGESA_STATUS AmdMemoryReadSPD (UINT32 unused1, UINTN unused2, AGESA_READ_SPD_PAR if (spdAddress == 0) return AGESA_ERROR; - int err = hudson_readSpd(spdAddress, (void *) info->Buffer, 256); + int err = hudson_readSpd(spdAddress, (void *) info->Buffer, DDR3_SPD_SIZE); if (err) return AGESA_ERROR; return AGESA_SUCCESS; -- cgit v1.2.3