mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 22:03:15 +00:00
c645012aef
The criteria of the AMCC SDRAM Controller DDR autocalibration U-Boot code is to pick the largest passing write/read/compare window that also has the smallest SDRAM_RDCC.[RDSS] Read Sample Cycle Select value. On some Kilauea boards the DDR autocalibration algorithm can find a large passing write/read/compare window with a small SDRAM_RDCC.[RDSS] aggressive value of Read Sample Cycle Select value "T1 Sample". This SDRAM_RDCC.[RDSS] Read Sample Cycle Select value of "T1 Sample" proves to be to aggressive when later on U-Boot relocates into DDR memory and executes. The memory traces on the Kilauea board are short so on some Kilauea boards the SDRAM_RDCC.[RDSS] Read Sample Cycle Select value of "T1 Sample" shows up as a potentially valid value for the DDR autocalibratiion algorithm. The fix is to define a weak default function which provides the minimum SDRAM_RDCC.[RDSS] Read Sample Cycle Select value to accept for DDR autocalibration. The default will be the "T2 Sample" value. A board developer who has a well defined board and chooses to be more aggressive can always provide their own board specific string function with the more aggressive "T1 Sample" value or stick with the default minimum SDRAM_RDCC.[RDSS] value of "T2". Also put in a autocalibration loop fix for case where current write/read/compare passing window size is the same as a prior window size, then in this case choose the write/read/compare result that has the associated smallest RDCC T-Sample value. Signed-off-by: Adam Graham <agraham@amcc.com> Signed-off-by: Stefan Roese <sr@denx.de> |
||
---|---|---|
.. | ||
4xx_ibm_ddr2_autocalib.c | ||
4xx_pci.c | ||
4xx_pcie.c | ||
4xx_uart.c | ||
40x_spd_sdram.c | ||
44x_spd_ddr.c | ||
44x_spd_ddr2.c | ||
bedbug_405.c | ||
cache.S | ||
commproc.c | ||
config.mk | ||
cpu.c | ||
cpu_init.c | ||
dcr.S | ||
denali_data_eye.c | ||
denali_spd_ddr2.c | ||
ecc.c | ||
ecc.h | ||
fdt.c | ||
gpio.c | ||
i2c.c | ||
interrupts.c | ||
iop480_uart.c | ||
kgdb.S | ||
Makefile | ||
miiphy.c | ||
ndfc.c | ||
resetvec.S | ||
sdram.c | ||
sdram.h | ||
speed.c | ||
start.S | ||
tlb.c | ||
traps.c | ||
uic.c | ||
usb.c | ||
usb_ohci.c | ||
usb_ohci.h | ||
usbdev.c | ||
usbdev.h | ||
xilinx_irq.c |