Hi,

I have a custom board based on 460EX with 2G of soldered DDR2 SDRAM.
The memory is arranged in 2 ranks, 0, and 1, each one having 1G.
I've used AMCC DDR2 spreadsheet to configure SDRAM controller registers.

The problem is that autocalibration fails, debug messages show that
min and max values are always zero. I've tried method A, but it seems
to run indefinitely.

I run u-boot 2009.03. Below is my register configuration.

#define CONFIG_SYS_SDRAM_R0BAS          0x0000e000
#define CONFIG_SYS_SDRAM_R1BAS          0x1000e000
#define CONFIG_SYS_SDRAM_R2BAS          0x00000000
#define CONFIG_SYS_SDRAM_R3BAS          0x00000000
#define CONFIG_SYS_SDRAM_PLBADDULL      0x00000000
#define CONFIG_SYS_SDRAM_PLBADDUHB      0x00000008
#define CONFIG_SYS_SDRAM_CONF1LL        0x80001C80
#define CONFIG_SYS_SDRAM_CONF1HB        0x80001C80
#define CONFIG_SYS_SDRAM_CONFPATHB      0x18a68000

#define CONFIG_SYS_SDRAM0_MB0CF         0x00000701
#define CONFIG_SYS_SDRAM0_MB1CF         0x00000701
#define CONFIG_SYS_SDRAM0_MB2CF         0x00000000
#define CONFIG_SYS_SDRAM0_MB3CF         0x00000000
#define CONFIG_SYS_SDRAM0_MCOPT1        0x05322000
#define CONFIG_SYS_SDRAM0_MCOPT2        0x00000000

#define CONFIG_SYS_SDRAM0_MODT0         0x05000000
#define CONFIG_SYS_SDRAM0_MODT1         0x00000000
#define CONFIG_SYS_SDRAM0_MODT2         0x00000000
#define CONFIG_SYS_SDRAM0_MODT3         0x00000000
#define CONFIG_SYS_SDRAM0_CODT          0x02800021
#define CONFIG_SYS_SDRAM0_RTR           0x06180000

#define CONFIG_SYS_SDRAM0_INITPLR0      0xA8380000
#define CONFIG_SYS_SDRAM0_INITPLR1      0x81900400
#define CONFIG_SYS_SDRAM0_INITPLR2      0x81020000
#define CONFIG_SYS_SDRAM0_INITPLR3      0x81030000
#define CONFIG_SYS_SDRAM0_INITPLR4      0x81010004
#define CONFIG_SYS_SDRAM0_INITPLR5      0xE4000552
#define CONFIG_SYS_SDRAM0_INITPLR6      0x81900400
#define CONFIG_SYS_SDRAM0_INITPLR7      0x93880000
#define CONFIG_SYS_SDRAM0_INITPLR8      0x93880000
#define CONFIG_SYS_SDRAM0_INITPLR9      0x93880000
#define CONFIG_SYS_SDRAM0_INITPLR10     0x93880000
#define CONFIG_SYS_SDRAM0_INITPLR11     0x81000452
#define CONFIG_SYS_SDRAM0_INITPLR12     0x81000384
#define CONFIG_SYS_SDRAM0_INITPLR13     0x81000004
#define CONFIG_SYS_SDRAM0_INITPLR14     0x00000000
#define CONFIG_SYS_SDRAM0_INITPLR15     0x00000000

#define CONFIG_SYS_SDRAM0_RQDC          0x80000038
#define CONFIG_SYS_SDRAM0_RFDC          0x003f0000
#define CONFIG_SYS_SDRAM0_RDCC          0x00000000
#define CONFIG_SYS_SDRAM0_DLCR          0x00000000
#define CONFIG_SYS_SDRAM0_CLKTR         0x80000000
#define CONFIG_SYS_SDRAM0_WRDTR         0x83000800
#define CONFIG_SYS_SDRAM0_SDTR1         0x80201000
#define CONFIG_SYS_SDRAM0_SDTR2         0x32404232
#define CONFIG_SYS_SDRAM0_SDTR3         0x090b0d27
#define CONFIG_SYS_SDRAM0_MMODE         0x00000452
#define CONFIG_SYS_SDRAM0_MEMODE        0x00000004

#define CONFIG_SYS_MBYTES_SDRAM 2048

Any idea what could be the problem ?

Thanks a lot in advance.

Felix.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to