Skip to contentSkip to conversation

ppc4xx: Kilauea: Fix SDRAM init in NAND booting version

PATCH New Stefan Roese 1 participant 2 messages Jul 27, 2009 – Jul 28, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx: Kilauea: Fix SDRAM init in NAND booting version

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.

---
 include/configs/kilauea.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/configs/kilauea.h +2 -0
index 44bcbc0..965599c 100644
@@ -236,9 +236,11 @@
  *
  * 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)
 
Signature · 1 line
1.6.3.3
author Applied
#1 lore raw

PATCH 1/1 ppc4xx: Kilauea: Fix SDRAM init in NAND booting version

Quoted 6 lines · On Monday 27 July 2009 07:42:37 Stefan Roese wrote:

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.

Applied to ppc4xx/master. Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================