Patchwork [2/2] Amd_ddr3_mct_InitPhyCompensation

login
register
about
Submitter She, Kerry
Date 2010-09-03 10:14:43
Message ID <F53A09371FB723428826B442A4B20A4103F7C857@sbjgexmb1.amd.com>
Download mbox | patch
Permalink /patch/1857/
State Accepted
Delegated to: Patrick Georgi
Headers show

Comments

She, Kerry - 2010-09-03 10:14:43
Hello,

 

AMD DDR3 MCT function InitPhyCompensation() compliant with AGESA code.

 

Signed-off-by: Kerry She <Kerry.she@amd.com>

Patch

Index: src/northbridge/amd/amdmct/mct_ddr3/mct_d.c
===================================================================
--- src/northbridge/amd/amdmct/mct_ddr3/mct_d.c	(revision 5773)
+++ src/northbridge/amd/amdmct/mct_ddr3/mct_d.c	(working copy)
@@ -3127,9 +3127,10 @@ 
 		i = 0; /* use i for the dct setting required */
 		if (pDCTstat->MAdimms[0] < 4)
 			i = 1;
-		if (((pDCTstat->Speed == 2) || (pDCTstat->Speed == 3)) && (pDCTstat->MAdimms[i] == 4))
+		if (((pDCTstat->Speed == 2) || (pDCTstat->Speed == 3)) && (pDCTstat->MAdimms[i] == 4)) {
 			dword &= 0xF18FFF18;
 			index_reg = 0x98;	/* force dct = 0 */
+		}
 	}
 
 	Set_NB32_index_wait(dev, index_reg, 0x0a, dword);