switch-coreboot/northbridge
Carl-Daniel Hailfinger ea0fbc9514 Changed RAM speed calculation to fix RAM modules getting rejected only
due to integer rounding errors. Previously, the formula was:
        speed = 2 * (10000/spd_value)
For spd_value=60 this means speed = 2 * 166 = 332, which is less than
333 and coreboot died saying RAM was incompatible. The new formula is:
        speed = 20000 / spd_value
For spd_value=60, speed=333, which is fine.

Signed-off-by: Jens Rottmann <JRottmann@LiPPERTEmbedded.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>

Mart writes:
Tested on ThinCan DBE63 to fix the issue of 333 > 332 comparison for RAM
modules I had problems with before due to bailing out in the
overclocking check.

Acked-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@1157 f3766cd6-281f-0410-b1cd-43a5c92072e9
2009-03-19 11:33:16 +00:00
..
amd Changed RAM speed calculation to fix RAM modules getting rejected only 2009-03-19 11:33:16 +00:00
intel This patch extends core2 smp support to v3. It is an 2009-02-21 00:05:20 +00:00
via/cn700 This patch converts __FUNCTION__ to __func__, since __func__ is standard. 2009-02-12 21:15:34 +00:00