83xx: Fix some bugs in spd sdram code
authorDave Liu <daveliu@freescale.com>
Wed, 25 Feb 2009 04:31:32 +0000 (12:31 +0800)
committerKim Phillips <kim.phillips@freescale.com>
Fri, 6 Mar 2009 00:20:37 +0000 (18:20 -0600)
commit5b0055547f0246908b79cc300170d87380b69e18
tree6141a20ef84fbfdab53d5747fe482896c31ad694
parentb7be63abec45858c044f0fbd6aeef524c4663f9b
83xx: Fix some bugs in spd sdram code

1. RD_TO_PRE missed to add the AL, and need min 2 clocks for
  tRTP according to DDR2 JEDEC spec.
2. WRTORD - tWTR need min 2 clocks according to DDR2 JEDEC spec.
3. add the support of DDR2-533,667,800 DIMMs
4. cpo
5. make the AL to min to gain better performance.

The Micron MT9HTF6472CHY-667D1 DIMMs test passed on
MPC837xEMDS platform at 266MHz/333MHz/400MHz data rate.

items 1, 2 and 5:
Acked-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Reported-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
cpu/mpc83xx/spd_sdram.c