coreboot/src/northbridge/amd
Timothy Pearson 6f9468f019 amd/mct/ddr3: Rework memory speed to clock value conversion logic
The existing DRAM clock speed to configuration value logic contained
an error resulting in a theoretical out of bounds read.  While this
would not be hit on real hardware, it was prudent to clean up the
logic to avoid the associated Coverity warning.

Found-by: Coverity Scan #1347353
Change-Id: Ic3de3074f51d52be112a2d6f2d68e35dc881dd2e
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
Reviewed-on: https://review.coreboot.org/18073
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2017-01-11 00:18:34 +01:00
..
agesa AMD fam10 binaryPI: Remove invalid PCI ops on CPU domain 2016-12-07 13:05:48 +01:00
amdfam10 amdfam10: Perform major include ".c" cleanup 2017-01-04 18:56:01 +01:00
amdht amdfam10: Perform major include ".c" cleanup 2017-01-04 18:56:01 +01:00
amdk8 MMCONF_SUPPORT: Flip default to enabled 2016-12-07 13:00:31 +01:00
amdmct amd/mct/ddr3: Rework memory speed to clock value conversion logic 2017-01-11 00:18:34 +01:00
cimx northbridge/amd: Improve code formatting 2016-09-21 11:04:45 +02:00
gx2 northbridge/amd: Improve code formatting 2016-09-21 11:04:45 +02:00
lx northbridge/amd/lx: Remove commented code 2016-10-09 21:31:11 +02:00
pi amd/pi: Make BottomIo position configurable 2017-01-09 18:13:48 +01:00