From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Linux I2C <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH 1/3] decode-dimms: Print DDR2 equivalent speed of tCK max
Date: Mon, 22 Oct 2012 13:39:43 +0200 [thread overview]
Message-ID: <20121022133943.28b14338@endymion.delvare> (raw)
Print DDR2 equivalent speed of tCK max.
---
eeprom/decode-dimms | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--- i2c-tools.orig/eeprom/decode-dimms 2012-10-22 12:39:45.000000000 +0200
+++ i2c-tools/eeprom/decode-dimms 2012-10-22 12:42:11.723525497 +0200
@@ -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 ? "" : # Can't happen, prevent div by 0
+ tns($temp)." (DDR2-".int(2000 / $temp).")");
# more timing information
prints("Timing Parameters");
--
Jean Delvare
reply other threads:[~2012-10-22 11:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121022133943.28b14338@endymion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox