Commit aee0013e53b339a573e2a8d66062fe87765aa3bd

Authored by Fabio Estevam
Committed by Stefano Babic
1 parent 2d6286ab79

mx53loco: Fix boot hang during reboot stress test

Currently by running the following test:

=> setenv bootcmd reset
=> save
=> reset

, we observe a hang after approximately 20-30 minutes of stress reboot test.

Investigation of this issue revealed that when a single DDR chip select is used,
the hang does not happen. It only happens when the two chip selects are active.

MX53 reference manual states at "28.6.2 Memory ZQ calibration sequence":

"The controller must keep the memory lines quiet (except for CK) for the ZQ
calibration time as defined in the Jedec (512 cycles for ZQCL after reset, 256
for other ZQCL and 64 for ZQCS)."

According to the SDE_0 and SDE_1 bit descriptions from register ESDCTL_ESDCTL:

"Writing 1 to SDE0 or SDE1 will initiate power up delays as JEDEC defines.
Power up delays are a function of the configured memory type (DDR2/DDR3/LPDDR2)"

So make sure to activate one chip select at time (CS0 first and then CS1 later),
so that the required JEDEC delay is respected for each chip select.

With this change applied the board has gone through three days of reboot stress
test without any hang.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

board/freescale/mx53loco/imximage.cfg
... ... @@ -59,7 +59,7 @@
59 59 DATA 4 0x63fd907c 0x01370138
60 60 DATA 4 0x63fd9080 0x013b013c
61 61 DATA 4 0x63fd9018 0x00011740
62   -DATA 4 0x63fd9000 0xc3190000
  62 +DATA 4 0x63fd9000 0x83190000
63 63 DATA 4 0x63fd900c 0x9f5152e3
64 64 DATA 4 0x63fd9010 0xb68e8a63
65 65 DATA 4 0x63fd9014 0x01ff00db
... ... @@ -72,6 +72,7 @@
72 72 DATA 4 0x63fd901c 0x00028031
73 73 DATA 4 0x63fd901c 0x052080b0
74 74 DATA 4 0x63fd901c 0x04008040
  75 +DATA 4 0x63fd9000 0xc3190000
75 76 DATA 4 0x63fd901c 0x0000803a
76 77 DATA 4 0x63fd901c 0x0000803b
77 78 DATA 4 0x63fd901c 0x00028039