Skip to contentSkip to conversation

socrates: fix crash after relocation

PATCH New Anatolij Gustschin 2 participants 2 messages Sep 17, 2008 – Sep 22, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 socrates: fix crash after relocation

Currently U-Boot crashes after relocation to RAM. Changing the CPO value of the DDR SDRAM TIMING_CFG_2 register to READ_LAT + 1 (to the value it was before conversion of socrates to new DDR code) fixes the problem.

---
 board/socrates/ddr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
board/socrates/ddr.c +1 -1
index bbb5ee2..62a5951 100644
@@ -57,7 +57,7 @@ void fsl_ddr_board_options(memctl_options_t *popts, unsigned int ctrl_num)
 	 *	- frequency
 	 *	- ddr1 vs. ddr2
 	 */
-	popts->cpo_override = 10;
+	popts->cpo_override = 0;
 
 	/*
 	 * Factors to consider for write data delay:
Signature · 1 line
1.5.3.3
#1 lore raw

PATCH 1/1 socrates: fix crash after relocation

Dear Anatolij Gustschin,

Quoted 10 lines · In message <[email protected]> you wrote:

Currently U-Boot crashes after relocation to RAM. Changing the CPO value of the DDR SDRAM TIMING_CFG_2 register to READ_LAT + 1 (to the value it was before conversion of socrates to new DDR code) fixes the problem.

---
 board/socrates/ddr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Andy, I hope this is OK with you - the patch affects only this single board.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
SW engineering is a race between programmers trying  to  make  better
idiot-proof programs and the universe producing greater idiots.