summaryrefslogtreecommitdiff
path: root/cpu/mpc85xx/ddr-gen3.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-03-10 22:04:04 +0100
committerWolfgang Denk <wd@denx.de>2009-03-10 22:04:04 +0100
commit3c92217732edfc0016c3cbdc828471d013d23a36 (patch)
treef695fd402c8cd78b0d5f1e66a0e2ca17c7f7d146 /cpu/mpc85xx/ddr-gen3.c
parentb5a15c90a6f1230723c4e887a707d9c41ac3f4e2 (diff)
parent0452352df118bc9dd684a056aaaa5fb4aed1178a (diff)
downloadu-boot-imx-3c92217732edfc0016c3cbdc828471d013d23a36.zip
u-boot-imx-3c92217732edfc0016c3cbdc828471d013d23a36.tar.gz
u-boot-imx-3c92217732edfc0016c3cbdc828471d013d23a36.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'cpu/mpc85xx/ddr-gen3.c')
-rw-r--r--cpu/mpc85xx/ddr-gen3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/mpc85xx/ddr-gen3.c b/cpu/mpc85xx/ddr-gen3.c
index 8dc2b3a..99c325a 100644
--- a/cpu/mpc85xx/ddr-gen3.c
+++ b/cpu/mpc85xx/ddr-gen3.c
@@ -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);
/*