From 367298b2b4a31a05ccbb615d50ed46c3a42afca0 Mon Sep 17 00:00:00 2001
From: Mike Banon <mikebdp2@gmail.com>
Date: Fri, 17 Apr 2020 13:58:57 +0300
Subject: vc/amd/agesa/f15tn: add 933 MHz to
 GfxMemClockFrequencyDefinitionTable
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This fix is required to avoid the division-by-zero error described at
https://mail.coreboot.org/pipermail/coreboot/2014-March/077418.html
while trying to run the DDR3 memory at 1866 MT/s (933 MHz).

With this fix in place, ASUS A88XM-E boots fine with RAM at 1866 MT/s.

Signed-off-by: Mike Banon <mikebdp2@gmail.com>
Change-Id: I8e7d00e362879b1247ecf2ab828936268bf9075f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40485
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
---
 src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/GfxLibTN.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/GfxLibTN.c b/src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/GfxLibTN.c
index ce50a975c7..6177d08ef1 100644
--- a/src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/GfxLibTN.c
+++ b/src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/GfxLibTN.c
@@ -73,7 +73,7 @@
 CONST UINT16 GfxMemClockFrequencyDefinitionTable [][8] = {
 {0 ,  0 ,  0 ,  0 ,  333,  0,  400,  0 },
 {0 ,  0 ,  533,  0 ,  0 ,  0 ,  667,  0 },
-{0 ,  0 ,   800,  0 ,  0 ,  0 ,  0 ,  0 },
+{0 ,  0 ,   800,  0 ,  0 ,  0 , 933,  0 },
 {0 , 1050, 1066, 0 , 0,    0 , 0,    1200}
 };
 
-- 
cgit v1.2.3