diff options
author | Jens Rottmann <JRottmann@LiPPERTEmbedded.de> | 2008-10-22 22:26:09 +0000 |
---|---|---|
committer | Marc Jones <marc.jones@amd.com> | 2008-10-22 22:26:09 +0000 |
commit | f6fa12d89e8b260bae9652406b8a4ce519c783e0 (patch) | |
tree | 4bd7dbe69258a5f9b5104f8dab1f4001d7bbfe16 /targets/lippert | |
parent | 5e5bef5fbdc9ed15884f659ee6d822824a1080f1 (diff) |
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: Marc Jones <marc.jones@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3689 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'targets/lippert')
0 files changed, 0 insertions, 0 deletions