nb/amd/agesa: read 256 bytes to SPD buffer instead of 128
Required for adding the XMP profiles support. SPD buffer is already 256 bytes at AMD AGESA vendorcode, so this is fine. Signed-off-by: Mike Banon <mikebdp2@gmail.com> Change-Id: I7340b110477a4cc1ecb1c239181436e51952568f Reviewed-on: https://review.coreboot.org/c/coreboot/+/40484 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
2875df1c9e
commit
d5ffa6e1b3
|
@ -40,7 +40,7 @@ AGESA_STATUS AmdMemoryReadSPD (UINT32 unused1, UINTN unused2, AGESA_READ_SPD_PAR
|
||||||
if (spdAddress == 0)
|
if (spdAddress == 0)
|
||||||
return AGESA_ERROR;
|
return AGESA_ERROR;
|
||||||
|
|
||||||
int err = smbus_readSpd(spdAddress, (void *) info->Buffer, 128);
|
int err = smbus_readSpd(spdAddress, (void *) info->Buffer, 256);
|
||||||
if (err)
|
if (err)
|
||||||
return AGESA_ERROR;
|
return AGESA_ERROR;
|
||||||
return AGESA_SUCCESS;
|
return AGESA_SUCCESS;
|
||||||
|
|
|
@ -39,7 +39,7 @@ AGESA_STATUS AmdMemoryReadSPD (UINT32 unused1, UINTN unused2, AGESA_READ_SPD_PAR
|
||||||
if (spdAddress == 0)
|
if (spdAddress == 0)
|
||||||
return AGESA_ERROR;
|
return AGESA_ERROR;
|
||||||
|
|
||||||
int err = hudson_readSpd(spdAddress, (void *) info->Buffer, 128);
|
int err = hudson_readSpd(spdAddress, (void *) info->Buffer, 256);
|
||||||
if (err)
|
if (err)
|
||||||
return AGESA_ERROR;
|
return AGESA_ERROR;
|
||||||
return AGESA_SUCCESS;
|
return AGESA_SUCCESS;
|
||||||
|
|
|
@ -39,7 +39,7 @@ AGESA_STATUS AmdMemoryReadSPD (UINT32 unused1, UINTN unused2, AGESA_READ_SPD_PAR
|
||||||
if (spdAddress == 0)
|
if (spdAddress == 0)
|
||||||
return AGESA_ERROR;
|
return AGESA_ERROR;
|
||||||
|
|
||||||
int err = hudson_readSpd(spdAddress, (void *) info->Buffer, 128);
|
int err = hudson_readSpd(spdAddress, (void *) info->Buffer, 256);
|
||||||
if (err)
|
if (err)
|
||||||
return AGESA_ERROR;
|
return AGESA_ERROR;
|
||||||
return AGESA_SUCCESS;
|
return AGESA_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue