summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Huber <andreas.huber@keymile.com>2011-11-10 15:52:43 +0100
committerKim Phillips <kim.phillips@freescale.com>2011-11-11 16:41:04 -0600
commit55449a0dda8ab56e027be572e23dfdc8deff2c94 (patch)
tree46744bb0d59963b03d817e527cdaa791aa491ebb
parent2d14e36a50a5d35e9e27709c7876288a832aa551 (diff)
downloadu-boot-imx-55449a0dda8ab56e027be572e23dfdc8deff2c94.zip
u-boot-imx-55449a0dda8ab56e027be572e23dfdc8deff2c94.tar.gz
u-boot-imx-55449a0dda8ab56e027be572e23dfdc8deff2c94.tar.bz2
powerpc/83xx: fix sdram initialization for keymile boards
commit b11f53f3 (keymile: Fix Coding style issues for keymile boards) introduces a bug according the SDRAM initialization for all km83xx boards. im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN; was replaced with out_be32(&im->ddr.sdram_cfg, SDRAM_CFG_MEM_EN); and this is wrong, because this overwrites the intial value CONFIG_SYS_DDR_SDRAM_CFG. Signed-off-by: Andreas Huber <andreas.huber@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
-rw-r--r--board/keymile/km83xx/km83xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/keymile/km83xx/km83xx.c b/board/keymile/km83xx/km83xx.c
index 17560c8..16ae2e4 100644
--- a/board/keymile/km83xx/km83xx.c
+++ b/board/keymile/km83xx/km83xx.c
@@ -217,7 +217,7 @@ int fixed_sdram(void)
out_be32(&im->ddr.sdram_interval, CONFIG_SYS_DDR_INTERVAL);
out_be32(&im->ddr.sdram_clk_cntl, CONFIG_SYS_DDR_CLK_CNTL);
udelay(200);
- out_be32(&im->ddr.sdram_cfg, SDRAM_CFG_MEM_EN);
+ setbits_be32(&im->ddr.sdram_cfg, SDRAM_CFG_MEM_EN);
msize = CONFIG_SYS_DDR_SIZE << 20;
disable_addr_trans();