public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ppc4xx: Fix initialization of SDRAM_CODT register in ppc_4xx_ddr2.c
@ 2009-01-26 16:59 carolyn.j.smith at tektronix.com
  2009-01-27  5:46 ` Stefan Roese
  0 siblings, 1 reply; 4+ messages in thread
From: carolyn.j.smith at tektronix.com @ 2009-01-26 16:59 UTC (permalink / raw)
  To: u-boot

This fixes the initialization of the SDRAM_CODT register in the ppc4xx DDR2 initialization code. The changes were discussed with Stefan Roese and Adam Graham and tested by Adam.

Signed-off-by: Carolyn Smith <carolyn.smith@tektronix.com>
---
diff -w -uprN old/cpu/ppc4xx/44x_spd_ddr2.c new/cpu/ppc4xx/44x_spd_ddr2.c
--- old/cpu/ppc4xx/44x_spd_ddr2.c       2009-01-20 13:00:33.000000000 -0800
+++ new/cpu/ppc4xx/44x_spd_ddr2.c       2009-01-23 16:00:49.000000000 -0800
@@ -1104,11 +1104,14 @@ static void program_codt(unsigned long *
         * 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_IO_NMODE;
+
+       codt &= ~(SDRAM_CODT_DQS_SINGLE_END |
+                 SDRAM_CODT_CKSE_SINGLE_END |
+                 SDRAM_CODT_FEEBBACK_RCV_SINGLE_END |
+                 SDRAM_CODT_FEEBBACK_DRV_SINGLE_END);
+

        for (dimm_num = 0; dimm_num < num_dimm_banks; dimm_num++) {
                if (dimm_populated[dimm_num] != SDRAM_NONE) {

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-28 16:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-26 16:59 [U-Boot] [PATCH] ppc4xx: Fix initialization of SDRAM_CODT register in ppc_4xx_ddr2.c carolyn.j.smith at tektronix.com
2009-01-27  5:46 ` Stefan Roese
2009-01-28  7:22   ` Adam Graham
2009-01-28 16:24     ` carolyn.j.smith at tektronix.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox