diff options
author | Jean Delvare <jdelvare@suse.de> | 2012-10-25 11:58:14 +0000 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2012-10-25 11:58:14 +0000 |
commit | 25ec5f7bf0d0a6c3bb3485c5e78560722433c6a3 (patch) | |
tree | f673237a0dcf3b71e4d2d7972db86725b1efeb96 | |
parent | c18801fcb1caf852887b825df99dd2902f0e9e41 (diff) | |
download | i2c-tools-25ec5f7bf0d0a6c3bb3485c5e78560722433c6a3.tar.gz |
decode-dimms: Print DDR2 equivalent speed of tCK max.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6080 7894878c-1315-0410-8ee3-d5d059ff63e0
-rw-r--r-- | CHANGES | 1 | ||||
-rwxr-xr-x | eeprom/decode-dimms | 8 |
2 files changed, 6 insertions, 3 deletions
@@ -12,6 +12,7 @@ SVN HEAD Merge cells by default in side-by-side output Print extra timing values of DDR SDRAM Print DDR core timings for all supported CAS values + Print DDR2 equivalent speed of tCK max i2cdetect: Do a best effort detection if functionality is missing i2c-dev.h: Minimize differences with kernel flavor Move SMBus helper functions to include/i2c/smbus.h diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index e81cf55..9115ded 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -1186,9 +1186,11 @@ sub decode_ddr2_sdram($) printl_cond(defined $cycle_time, "Minimum Cycle Time", $cycle_time); printl_cond(defined $access_time, "Maximum Access Time", $access_time); - - printl("Maximum Cycle Time (tCK max)", - tns(ddr2_sdram_ctime($bytes->[43]))); + $temp = ddr2_sdram_ctime($bytes->[43]); + printl_cond(($bytes->[43] & 0xf0) && $bytes->[43] != 0xff, + "Maximum Cycle Time (tCK max)", + $temp == 0 ? "" : # Wouldn't be displayed, prevent div by 0 + tns($temp)." (DDR2-".int(2000 / $temp).")"); # more timing information prints("Timing Parameters"); |