From 0d5ccf640db9ab80c975963780c3af97588c5c73 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Mon, 1 May 2017 20:13:34 -0700 Subject: [PATCH] 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 --- CHANGES | 1 + prog/detect/sensors-detect | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index a044083a..db91bbdd 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index fa2a795f..9ef8dc57 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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;