]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx: Kilauea: Fix SDRAM init in NAND booting version
authorStefan Roese <sr@denx.de>
Mon, 27 Jul 2009 05:42:37 +0000 (07:42 +0200)
committerStefan Roese <sr@denx.de>
Tue, 28 Jul 2009 05:23:54 +0000 (07:23 +0200)
DDR2 Auto-calibration needs to be disabled on the NAND booting PPC4xx
targets. Otherwise the configured fixed init values for some DDR2
controller registers (e.g. RQDC) are not initialized at all resulting
in a non working SDRAM.

Signed-off-by: Stefan Roese <sr@denx.de>
include/configs/kilauea.h

index 44bcbc0dc5e8fbb451869e9ed6583c498d3b82c2..965599c7a7b94fdb08b90c2d0a866fccfd825995 100644 (file)
  *
  * DDR Autocalibration Method_B is the default.
  */
+#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
 #define        CONFIG_PPC4xx_DDR_AUTOCALIBRATION       /* IBM DDR autocalibration */
 #define        DEBUG_PPC4xx_DDR_AUTOCALIBRATION        /* dynamic DDR autocal debug */
 #undef CONFIG_PPC4xx_DDR_METHOD_A
+#endif
 
 #define        CONFIG_SYS_SDRAM0_MB0CF_BASE    ((  0 << 20) + CONFIG_SYS_SDRAM_BASE)