diff options
author | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2012-12-20 19:50:06 +0000 |
---|---|---|
committer | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2012-12-20 19:50:06 +0000 |
commit | 79392575223d32d4b10bbe1ce71d6be2002508da (patch) | |
tree | d57f6878765bfa5fdc9b934c9cf59dd0ec658b9d /eeprom | |
parent | 96705c725235327bb86103c71efd34f79b4a0f2e (diff) | |
download | i2c-tools-79392575223d32d4b10bbe1ce71d6be2002508da.tar.gz |
Fix decoding of SDR SPD revision. The encoding changed with revision
1.2.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6101 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'eeprom')
-rwxr-xr-x | eeprom/decode-dimms | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index fbd2599..7c900a3 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -606,7 +606,9 @@ sub decode_sdr_sdram($) my $temp; # SPD revision - printl("SPD Revision", $bytes->[62]); + # Starting with SPD revision 1.2, this byte is encoded in BCD + printl("SPD Revision", $bytes->[62] < 0x12 ? $bytes->[62] : + ($bytes->[62] >> 4) . "." . ($bytes->[62] & 0xf)); #size computation |