spd: Make mosys more tolerant to speed variances
SMBIOS is ambigous about exactly what speed should be listed.
e.g. The max speed of DDR4-2666 is 2667 MT/s but is often listed
as 2666 MT/s. This change adds a +/-1 tolrance for the check.
BUG=b:167155849
TEST=hardware.MemCheck is passing on Ezkinil with DDR4-2666
Change-Id: I2445827134af0f49153aef2f6fb53276e9215e88
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/mosys/+/2415024
Tested-by: Rob Barnes <robbarnes@google.com>
Auto-Submit: Rob Barnes <robbarnes@google.com>
Commit-Queue: Rob Barnes <robbarnes@google.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
1 file changed