diff options
author | Jean Delvare <jdelvare@suse.de> | 2013-04-13 16:28:20 +0000 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2013-04-13 16:28:20 +0000 |
commit | 9ef19df2ebb974e63ff8652e55b90c0c79c2b4d4 (patch) | |
tree | 0ab9fb4e7a39838084c7e49540e7faf9b57897e7 | |
parent | 501890705f0fa3e8d9250c88dfda3d2c5a68ba5e (diff) | |
download | i2c-tools-9ef19df2ebb974e63ff8652e55b90c0c79c2b4d4.tar.gz |
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
-rw-r--r-- | CHANGES | 1 | ||||
-rwxr-xr-x | eeprom/decode-dimms | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -26,6 +26,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: Do a best effort detection if functionality is missing Clarify the SMBus commands used for probing by default i2c-dev.h: Minimize differences with kernel flavor diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index 7473b3a..3ac3694 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -1362,6 +1362,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})"); |