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.

Change-Id: Idcb872a8a54e374c6c344613772a24af7ba3e55e
Signed-off-by: Duncan Laurie <>
Tested-by: Lijian Zhao <>
Tested-by: EricR Lai <>
Reviewed-by: Furquan Shaikh <>
Reviewed-by: Lijian Zhao <>
Reviewed-by: Shelley Chen <>
1 file changed