From 55449a0dda8ab56e027be572e23dfdc8deff2c94 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 10 Nov 2011 15:52:43 +0100 Subject: 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 Signed-off-by: Holger Brunck Acked-by: Heiko Schocher Signed-off-by: Kim Phillips --- board/keymile/km83xx/km83xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/keymile/km83xx') 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(); -- cgit v1.1