Complete the code which was missing.
authorZheng Bao <zheng.bao@amd.com>
Tue, 21 Sep 2010 02:51:31 +0000 (02:51 +0000)
committerZheng Bao <Zheng.Bao@amd.com>
Tue, 21 Sep 2010 02:51:31 +0000 (02:51 +0000)
Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5822 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/northbridge/amd/amdmct/mct/mct_d.c

index 4233705241ffd66db9a934d9340e8df78b80cb6f..402b5d93a55bcff711fdb72d8ca47e1af46c1ea5 100644 (file)
@@ -2426,8 +2426,11 @@ static void mct_DramInit(struct MCTStatStruc *pMCTstat,
 
                        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);
                }
        }
 }