Skip to content
Snippets Groups Projects
Commit 0ee84b88 authored by Ed Swarthout's avatar Ed Swarthout Committed by Andy Fleming
Browse files

Fix mpc85xx ddr-gen3 ddr_sdram_cfg.


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: default avatarEd Swarthout <Ed.Swarthout@freescale.com>
parent 014c595f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment