sarien: Set SPD page to 0 before reading
In some cases FSP might leave the SPD pointer set to page 1,
which will cause mosys to not be able to read the SPD info.
To fix this force a write to address 0x36 on the same I2C bus
which will set the page back to 0.
This change also switches to use a hard coded DIMM count rather
than reading it from SMBIOS. This is because if there is a
DIMM only installed in slot B it will not be found if SMBIOS
says there is only 1 DIMM in the system.
TEST=test 'memory spd print all' on sarien/arcada with both
DIMMs installed, and with one DIMM installed in slot A or B.
Signed-off-by: Duncan Laurie <email@example.com>
Tested-by: Lijian Zhao <firstname.lastname@example.org>
Tested-by: EricR Lai <email@example.com>
Reviewed-by: Furquan Shaikh <firstname.lastname@example.org>
Reviewed-by: Lijian Zhao <email@example.com>
Reviewed-by: Shelley Chen <firstname.lastname@example.org>
1 file changed