]> git.sur5r.net Git - u-boot/commitdiff
Fix mpc85xx ddr-gen3 ddr_sdram_cfg.
authorEd Swarthout <Ed.Swarthout@freescale.com>
Tue, 24 Feb 2009 08:37:59 +0000 (02:37 -0600)
committerAndy Fleming <afleming@freescale.com>
Mon, 9 Mar 2009 22:46:09 +0000 (17:46 -0500)
Commit e1be0d25, "32bit BUg fix for DDR2 on 8572" prevented other
sdram_cfg bits (such as ecc and self_refresh_in_sleep) from being set.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
cpu/mpc85xx/ddr-gen3.c

index 8dc2b3ac528bd66894778224c4c531c3c05903bd..99c325a4ff1f9dce7be21b7aefbc1b6b58d99d8a 100644 (file)
@@ -79,8 +79,8 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
        out_be32(&ddr->ddr_sdram_rcw_1, regs->ddr_sdram_rcw_1);
        out_be32(&ddr->ddr_sdram_rcw_2, regs->ddr_sdram_rcw_2);
 
-       /* Do not enable the memory */
-       temp_sdram_cfg = in_be32(&ddr->sdram_cfg);
+       /* Set, but do not enable the memory */
+       temp_sdram_cfg = regs->ddr_sdram_cfg;
        temp_sdram_cfg &= ~(SDRAM_CFG_MEM_EN);
        out_be32(&ddr->sdram_cfg, temp_sdram_cfg);
        /*