]> git.sur5r.net Git - u-boot/commitdiff
Motion-PRO: Add setting of SDelay reg. to SDRAM controller configuration.
authorBartlomiej Sieka <tur@semihalf.com>
Tue, 23 Oct 2007 09:36:07 +0000 (11:36 +0200)
committerBartlomiej Sieka <tur@semihalf.com>
Tue, 23 Oct 2007 09:36:07 +0000 (11:36 +0200)
Per AN3221 (MPC5200B SDRAM Initialization and Configuration), the SDelay
register must be written a value of 0x00000004 as the first step of the
SDRAM contorller configuration.

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
board/motionpro/motionpro.c

index f83998e5aa05c9970ff1cf844e38d483c3b72e29..68257b861d53a9a52c808a0a503c383c1f60db17 100644 (file)
@@ -138,6 +138,12 @@ long int initdram(int board_type)
 #ifndef CFG_RAMBOOT
        ulong test1, test2;
 
+       /* According to AN3221 (MPC5200B SDRAM Initialization and
+        * Configuration), the SDelay register must be written a value of
+        * 0x00000004 as the first step of the SDRAM contorller configuration.
+        */
+       *(vu_long *)MPC5XXX_SDRAM_SDELAY = 0x04;
+
        /* configure SDRAM start/end for detection */
        *(vu_long *)MPC5XXX_SDRAM_CS0CFG = 0x0000001e; /* 2G at 0x0 */
        *(vu_long *)MPC5XXX_SDRAM_CS1CFG = 0x80000000; /* disabled */