Add detection of DDR4 SPD

DDR4 SPD is quite similar to DDR3 SPD. Key difference for detection is
the DDR type, which is 0x0c or 12 for DDR4.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Guenter Roeck committed 2017-05-01 20:13:34 -07:00
1 parent 7035d7bec4
commit 0d5ccf640d
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -15,6 +15,7 @@ SVN HEAD
Mark F81866D as supported by the f71882fg driver
Add detection of various ITE chips
Add detection of Nuvoton NCT6795D
Add detection of DDR4 SPD
3.4.0 (2015-06-25)
documentation: Update the note about libsensors license
+1 -1
View File
@@ -6105,7 +6105,7 @@ sub eeprom_detect
$checksum &= 0xff;
return 8 if $checksum == i2c_smbus_read_byte_data($file, 63);
} elsif ($device_type >= 9 && $device_type <= 11) {
} elsif ($device_type >= 9 && $device_type <= 12) {
# see JEDEC 21-C 4.1.2.11 2.4
my $crc_coverage = i2c_smbus_read_byte_data($file, 0);
$crc_coverage = ($crc_coverage & 0x80) ? 117 : 126;