summaryrefslogtreecommitdiff
path: root/eeprom
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2019-01-09 15:00:55 +0100
committerJean Delvare <jdelvare@suse.de>2019-01-09 15:00:55 +0100
commit2e36fa9ff559bfc9a685ad758e618bd1c1f601f6 (patch)
treed3ade1beea958225d32ded7f04b4cbaa623a5d8c /eeprom
parent9b9e9043db1ea59de9f77ea1fd55f118df9912eb (diff)
downloadi2c-tools-git-2e36fa9ff559bfc9a685ad758e618bd1c1f601f6.tar.gz
decode-dimms: Print SPD revision for DDR3 too
Print the SPD revision of DDR3 modules as we do for all other modules. Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'eeprom')
-rwxr-xr-xeeprom/decode-dimms6
1 files changed, 5 insertions, 1 deletions
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index e8835e3..eb92e6e 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -1551,7 +1551,7 @@ use constant DDR3_REGISTERED => 2;
use constant DDR3_CLOCKED => 3;
use constant DDR3_LOAD_REDUCED => 4;
-# Parameter: EEPROM bytes 0-127 (using 3-76)
+# Parameter: EEPROM bytes 0-127 (using 1-68)
sub decode_ddr3_sdram($)
{
my $bytes = shift;
@@ -1577,6 +1577,10 @@ sub decode_ddr3_sdram($)
{ type => "32b-SO-DIMM", width => "67.6 mm", family => DDR3_UNBUFFERED },
);
+# SPD revision
+ printl_cond($bytes->[1] != 0xff, "SPD Revision",
+ ($bytes->[1] >> 4) . "." . ($bytes->[1] & 0xf));
+
printl("Module Type", ($bytes->[3] <= $#module_types) ?
$module_types[$bytes->[3]]->{type} :
sprintf("Reserved (0x%.2X)", $bytes->[3]));