[U-Boot-Users] MPC8260/66: SDRAM init

Holger Speck hospe at gmx.de
Tue Jul 22 10:46:01 CEST 2003


Hello,

I had some problems with the initialisation of SDRAM (64MB) on 60x bus.
Below the code I changed according to MPC8260 UM/D:

memctl->memc_psdmr = psdmr | 0x18000000; /* Mode Register write */
/* see 11.4.9 SDRAM MODE-SET Command Timming MPC8260 UM/D 05/2003, REV 1 */
/*  send mode (CAS latency as in PSDMR and burst length for 16- or 64-bit
ports) to SDRAM
*/
ramaddr = (uchar *) (CFG_SDRAM_BASE | (((cas_latency << 4) | 0x2) << 3));
*ramaddr = c;

The original code does not set "ramaddr" to the mode value. I tested this
new code on special board derived from the MPC8260ADS. I'm a litte bit
astonished that the original code works on the MPC8260ADS.

Grettings,
Holger






More information about the U-Boot mailing list