Browse Source

DDR3: Round down PC3 numbers to comply with Jedec.

git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6154 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v3.1.1
Jean Delvare 12 years ago
parent
commit
4aa36fe574
  1. 1
      CHANGES
  2. 2
      eeprom/decode-dimms

1
CHANGES

@ -12,6 +12,7 @@ SVN HEAD
Decode more DDR3 module types
Fix DDR3 tRAS decoding
Fix DDR3 core timings rounding
Round down PC3 numbers to comply with Jedec
i2cdetect: Clarify the SMBus commands used for probing by default
i2c-dev.h: Minimize differences with kernel flavor
Move SMBus helper functions to include/i2c/smbus.h

2
eeprom/decode-dimms

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

Loading…
Cancel
Save