diff options
author | Markus Klotzbuecher <mk@denx.de> | 2007-06-06 12:36:32 +0200 |
---|---|---|
committer | Markus Klotzbuecher <mk@pollux.denx.de> | 2007-06-06 12:36:32 +0200 |
commit | c4e2753436bf8ed42731c5b8b9ceb62cdb482f43 (patch) | |
tree | 490da1648330b586e2aefa4d1d0eea10cd0deb46 /cpu/ppc4xx/44x_spd_ddr2.c | |
parent | 19d763c35e0b5568eaf0b8adbf7a68ccfe7fa243 (diff) | |
parent | c0c292b2852a12e9d93e99b3aaf5b0dac5f36fdc (diff) | |
download | u-boot-imx-c4e2753436bf8ed42731c5b8b9ceb62cdb482f43.zip u-boot-imx-c4e2753436bf8ed42731c5b8b9ceb62cdb482f43.tar.gz u-boot-imx-c4e2753436bf8ed42731c5b8b9ceb62cdb482f43.tar.bz2 |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'cpu/ppc4xx/44x_spd_ddr2.c')
-rw-r--r-- | cpu/ppc4xx/44x_spd_ddr2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpu/ppc4xx/44x_spd_ddr2.c b/cpu/ppc4xx/44x_spd_ddr2.c index 2ecd3e4..48b9ee2 100644 --- a/cpu/ppc4xx/44x_spd_ddr2.c +++ b/cpu/ppc4xx/44x_spd_ddr2.c @@ -465,7 +465,11 @@ long int initdram(int board_type) * Set the SDRAM Clock Timing Register *-----------------------------------------------------------------*/ mfsdram(SDRAM_CLKTR, val); +#ifdef CFG_44x_DDR2_CKTR_180 + mtsdram(SDRAM_CLKTR, (val & ~SDRAM_CLKTR_CLKP_MASK) | SDRAM_CLKTR_CLKP_180_DEG_ADV); +#else mtsdram(SDRAM_CLKTR, (val & ~SDRAM_CLKTR_CLKP_MASK) | SDRAM_CLKTR_CLKP_0_DEG); +#endif /*------------------------------------------------------------------ * Program the BxCF registers. @@ -1117,7 +1121,8 @@ static void program_codt(unsigned long *dimm_populated, modt3 = 0x00000000; } if (total_rank == 4) { - codt |= CALC_ODT_R(0) | CALC_ODT_R(1) | CALC_ODT_R(2) | CALC_ODT_R(3); + codt |= CALC_ODT_R(0) | CALC_ODT_R(1) | + CALC_ODT_R(2) | CALC_ODT_R(3); modt0 = CALC_ODT_RW(2); modt1 = 0x00000000; modt2 = CALC_ODT_RW(0); |