From: Andreas Huber <andreas.hu...@keymile.com> 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.hu...@keymile.com> Signed-off-by: Holger Brunck <holger.bru...@keymile.com> cc: Heiko Schocher <h...@denx.de> cc: Kim Phillips <kim.phill...@freescale.com> --- board/keymile/km83xx/km83xx.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/board/keymile/km83xx/km83xx.c b/board/keymile/km83xx/km83xx.c index 17560c8..c0238c8 100644 --- a/board/keymile/km83xx/km83xx.c +++ b/board/keymile/km83xx/km83xx.c @@ -217,7 +217,8 @@ 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); + out_be32(&im->ddr.sdram_cfg, + SDRAM_CFG_MEM_EN | CONFIG_SYS_DDR_SDRAM_CFG); msize = CONFIG_SYS_DDR_SIZE << 20; disable_addr_trans(); -- 1.7.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot