* updated yet more dir-less .cache DEPs
[t2sde.git] / package / develop / i2c-tools / ddr5.patch
blobe5d17a63bd1ebe0d5c845514a1dfab97e6eeacc9
1 diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
2 index 787b6f5..87af7e8 100755
3 --- a/eeprom/decode-dimms
4 +++ b/eeprom/decode-dimms
5 @@ -27,7 +27,7 @@
6 # the legacy eeprom driver (in the kernel tree since v2.6.0). For kernels
7 # older than 2.6.0, the eeprom driver can be found in the lm-sensors 2
8 # package. For DDR4, you need the ee1004 driver (in the kernel tree since
9 -# kernel v4.20).
10 +# kernel v4.20). For DDR5 you need the spd5118 driver.
12 # References:
13 # PC SDRAM Serial Presence
14 @@ -2622,7 +2622,8 @@ sub get_dimm_list
15 if ($use_sysfs) {
16 @drivers = ('eeprom',
17 'at24',
18 - 'ee1004'); # DDR4
19 + 'ee1004', # DDR4
20 + 'spd5118'); # DDR5
21 } else {
22 @drivers = ('eeprom');
23 $dir = '/proc/sys/dev/sensors';
24 @@ -2647,7 +2648,8 @@ sub get_dimm_list
25 next unless defined $attr &&
26 ($attr eq "eeprom" ||
27 $attr eq "spd" ||
28 - $attr eq "ee1004"); # DDR4
29 + $attr eq "ee1004" || # DDR4
30 + $attr eq "spd5118"); # DDR5
31 } else {
32 next unless $file =~ /^eeprom-/;
34 @@ -2659,7 +2661,7 @@ sub get_dimm_list
37 if (!$opened) {
38 - print STDERR "No EEPROM found, try loading the eeprom, at24 or ee1004 module\n";
39 + print STDERR "No EEPROM found, try loading the eeprom, at24, ee1004 or spd5118 module\n";
40 exit;