software/liblitedram: use 2 cycles increment on write bitslip (for tCK steps).

This commit is contained in:
Florent Kermarrec 2020-10-12 10:58:43 +02:00
parent 3d5bc29dd1
commit d1f04e67c5
1 changed files with 1 additions and 1 deletions

View File

@ -865,7 +865,7 @@ static void sdram_write_latency_calibration(void) {
/* Scan possible write windows */ /* Scan possible write windows */
best_score = 0; best_score = 0;
best_bitslip = 0; best_bitslip = 0;
for(bitslip=0; bitslip<SDRAM_PHY_BITSLIPS; bitslip++) { for(bitslip=0; bitslip<SDRAM_PHY_BITSLIPS; bitslip+=2) { /* +2 for tCK steps */
score = 0; score = 0;
/* sel module */ /* sel module */
ddrphy_dly_sel_write(1 << module); ddrphy_dly_sel_write(1 << module);