Patchwork : Complete the code in amdmct

login
register
about
Submitter Bao, Zheng
Date 2010-09-21 01:53:04
Message ID <DD1CC71B621B004FA76856E5129D6B170424D542@sbjgexmb1.amd.com>
Download mbox | patch
Permalink /patch/1966/
State Accepted
Commit r5822
Headers show

Comments

Bao, Zheng - 2010-09-21 01:53:04
Complete the code which was missing.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>


dct), val);
 		}
 	}
 }
Complete the code which was missing.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Peter Stuge - 2010-09-21 02:36:11
Bao, Zheng wrote:
> Complete the code which was missing.
> 
> Signed-off-by: Zheng Bao <zheng.bao@amd.com>

Acked-by: Peter Stuge <peter@stuge.se>

Patch

Index: src/northbridge/amd/amdmct/mct/mct_d.c
===================================================================
--- src/northbridge/amd/amdmct/mct/mct_d.c	(revision 5818)
+++ src/northbridge/amd/amdmct/mct/mct_d.c	(working copy)
@@ -2426,8 +2426,11 @@ 
 
 			val = Get_NB32(pDCTstat->dev_dct, 0x8C + (0x100 * dct));
 			val &= ~(1 << DisAutoRefresh);
+			Set_NB32(pDCTstat->dev_dct, 0x8C + (0x100 * dct), val);
 			val |= 1 << DisAutoRefresh;
+			Set_NB32(pDCTstat->dev_dct, 0x8C + (0x100 * dct), val);
 			val &= ~(1 << DisAutoRefresh);
+			Set_NB32(pDCTstat->dev_dct, 0x8C + (0x100 * dct), val);
 		}
 	}
 }