Browse Source

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
tags/v4.0
Jean Delvare 13 years ago
parent
commit
603ee7bc6d
  1. 1
      CHANGES
  2. 4
      eeprom/decode-dimms

1
CHANGES

@ -20,6 +20,7 @@ SVN HEAD
Strip former manufacturer name in side-by-side output mode Strip former manufacturer name in side-by-side output mode
Remove duplicate "ns" in SDR timings Remove duplicate "ns" in SDR timings
Add section headers for SDR modules Add section headers for SDR modules
Fix decoding of SDR SPD revision
i2cdetect: Do a best effort detection if functionality is missing i2cdetect: Do a best effort detection if functionality is missing
i2c-dev.h: Minimize differences with kernel flavor i2c-dev.h: Minimize differences with kernel flavor
Move SMBus helper functions to include/i2c/smbus.h Move SMBus helper functions to include/i2c/smbus.h

4
eeprom/decode-dimms

@ -606,7 +606,9 @@ sub decode_sdr_sdram($)
my $temp; my $temp;
# SPD revision # 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 #size computation

Loading…
Cancel
Save