aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@infinera.com>2019-04-05 20:11:00 +0200
committerJean Delvare <jdelvare@suse.de>2019-04-05 20:11:00 +0200
commitcea0000657a2dde506df91ecce6b18ac2d7224db (patch)
treefb04531b6cdb78251cce69d38b9f68dd5b8444e3
parent955b13bf47d9e2cc041a39d35465455a53eb5f09 (diff)
downloadi2c-tools-cea0000657a2dde506df91ecce6b18ac2d7224db.tar.gz
decode-dimms: Print primary bus width for DDR3 and DDR4
Also make bus width extension conditional for DDR3, as was already done for DDR4.
-rwxr-xr-xeeprom/decode-dimms4
1 files changed, 3 insertions, 1 deletions
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index 9d80b75..d7758b1 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -1636,7 +1636,8 @@ sub decode_ddr3_sdram($)
printl("SDRAM Device Width", (1 << (($bytes->[7] & 7) + 2))." bits");
- printl("Bus Width Extension", ($bytes->[8] & 24)." bits");
+ printl("Primary Bus Width", (8 << ($bytes->[8] & 7))." bits");
+ printl_cond($bytes->[8] & 24, "Bus Width Extension", ($bytes->[8] & 24)." bits");
my $taa;
my $trcd;
@@ -1898,6 +1899,7 @@ sub decode_ddr4_sdram($)
printl("Ranks", $ranks);
printl_cond($ranks > 1, "Rank Mix",
$bytes->[12] & 0x40 ? "Asymmetrical" : "Symmetrical");
+ printl("Primary Bus Width", (8 << ($bytes->[13] & 7))." bits");
printl_cond($bytes->[13] & 0x18, "Bus Width Extension", ($bytes->[13] & 0x18)." bits");
my $taa;