summaryrefslogtreecommitdiffstats
path: root/util/inteltool
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-19 12:13:09 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-11-22 22:14:15 +0000
commit0b6ab953f3ee4c1fb9fe7ab7d580f3a7165b6c98 (patch)
tree37e70348cc712f83eb69961d0e08799b395470c2 /util/inteltool
parent4f86d630066eea380be76952f533ddaa5a8b28fd (diff)
downloadcoreboot-0b6ab953f3ee4c1fb9fe7ab7d580f3a7165b6c98.tar.gz
coreboot-0b6ab953f3ee4c1fb9fe7ab7d580f3a7165b6c98.tar.bz2
coreboot-0b6ab953f3ee4c1fb9fe7ab7d580f3a7165b6c98.zip
util/inteltool/ivy_memory.c: Properly mask tAONPD
This field is only 4 bits wide. Change-Id: I2cb746e98176d58fc5be423e18babdaa8801b096 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47749 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'util/inteltool')
-rw-r--r--util/inteltool/ivy_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/inteltool/ivy_memory.c b/util/inteltool/ivy_memory.c
index 7a81a92dba50..3836c11c1503 100644
--- a/util/inteltool/ivy_memory.c
+++ b/util/inteltool/ivy_memory.c
@@ -158,7 +158,7 @@ void ivybridge_dump_timings(const char *dump_spd_file)
reg = read_mchbar32(0x400c + channel * 0x400);
tXPDLL[channel] = reg & 0x1f;
tXP[channel] = (reg >> 5) & 7;
- tAONPD[channel] = (reg >> 8) & 0xff;
+ tAONPD[channel] = (reg >> 8) & 0xf;
}
printf(".mobile = %d,\n", (mr0[0] >> 12) & 1);
print_time("CAS", CAS, tCK);