summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarolyn Smith <carolyn.smith@tektronix.com>2009-02-12 06:13:44 +0100
committerStefan Roese <sr@denx.de>2009-02-12 06:15:48 +0100
commit7369f0e384e2a831be13a7773a58242c9173fa9c (patch)
treec15c687c28c50213187f4a6e8f4edcf970716119
parentcef0efaf2fa55d1f25066cfb02bd984c27f9ca31 (diff)
downloadu-boot-imx-7369f0e384e2a831be13a7773a58242c9173fa9c.zip
u-boot-imx-7369f0e384e2a831be13a7773a58242c9173fa9c.tar.gz
u-boot-imx-7369f0e384e2a831be13a7773a58242c9173fa9c.tar.bz2
ppc4xx: Fix initialization of the SDRAM_CODT register
This fixes the initialization of the SDRAM_CODT register in the ppc4xx DDR2 initialization code. It also removes use of the SDRAM_CODT_FEEDBACK_RCV_SINGLE_END and SDRAM_CODT_FEEDBACK_DRV_SINGLE_END #define's since they are reserved bits. Signed-off-by: Carolyn Smith <carolyn.smith@tektronix.com> Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r--cpu/ppc4xx/44x_spd_ddr2.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpu/ppc4xx/44x_spd_ddr2.c b/cpu/ppc4xx/44x_spd_ddr2.c
index 1e49571..33788cc 100644
--- a/cpu/ppc4xx/44x_spd_ddr2.c
+++ b/cpu/ppc4xx/44x_spd_ddr2.c
@@ -1101,11 +1101,8 @@ static void program_codt(unsigned long *dimm_populated,
* Set the SDRAM Controller On Die Termination Register
*-----------------------------------------------------------------*/
mfsdram(SDRAM_CODT, codt);
- codt |= (SDRAM_CODT_IO_NMODE
- & (~SDRAM_CODT_DQS_SINGLE_END
- & ~SDRAM_CODT_CKSE_SINGLE_END
- & ~SDRAM_CODT_FEEBBACK_RCV_SINGLE_END
- & ~SDRAM_CODT_FEEBBACK_DRV_SINGLE_END));
+ codt &= ~(SDRAM_CODT_DQS_SINGLE_END | SDRAM_CODT_CKSE_SINGLE_END);
+ codt |= SDRAM_CODT_IO_NMODE;
for (dimm_num = 0; dimm_num < num_dimm_banks; dimm_num++) {
if (dimm_populated[dimm_num] != SDRAM_NONE) {