From: Bartlomiej Sieka Date: Tue, 23 Oct 2007 09:36:07 +0000 (+0200) Subject: Motion-PRO: Add setting of SDelay reg. to SDRAM controller configuration. X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=eff501904df2bf1724a750062628ba2c51dbb1f8;p=u-boot.git Motion-PRO: Add setting of SDelay reg. to SDRAM controller configuration. 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 --- diff --git a/board/motionpro/motionpro.c b/board/motionpro/motionpro.c index f83998e5aa..68257b861d 100644 --- a/board/motionpro/motionpro.c +++ b/board/motionpro/motionpro.c @@ -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 */