Browse Source

DDR3: Round down PC3 numbers to comply with Jedec.

git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6131 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v4.0
Jean Delvare 12 years ago
parent
commit
9ef19df2eb
  1. 1
      CHANGES
  2. 2
      eeprom/decode-dimms

1
CHANGES

@ -26,6 +26,7 @@ SVN HEAD
Decode more DDR3 module types Decode more DDR3 module types
Fix DDR3 tRAS decoding Fix DDR3 tRAS decoding
Fix DDR3 core timings rounding Fix DDR3 core timings rounding
Round down PC3 numbers to comply with Jedec
i2cdetect: Do a best effort detection if functionality is missing i2cdetect: Do a best effort detection if functionality is missing
Clarify the SMBus commands used for probing by default Clarify the SMBus commands used for probing by default
i2c-dev.h: Minimize differences with kernel flavor i2c-dev.h: Minimize differences with kernel flavor

2
eeprom/decode-dimms

@ -1362,6 +1362,8 @@ sub decode_ddr3_sdram($)
my $ddrclk = 2 * (1000 / $ctime); my $ddrclk = 2 * (1000 / $ctime);
my $tbits = 1 << (($bytes->[8] & 7) + 3); my $tbits = 1 << (($bytes->[8] & 7) + 3);
my $pcclk = int ($ddrclk * $tbits / 8); my $pcclk = int ($ddrclk * $tbits / 8);
# Round down to comply with Jedec
$pcclk = $pcclk - ($pcclk % 100);
$ddrclk = int ($ddrclk); $ddrclk = int ($ddrclk);
printl("Maximum module speed", "$ddrclk MHz (PC3-${pcclk})"); printl("Maximum module speed", "$ddrclk MHz (PC3-${pcclk})");

Loading…
Cancel
Save