Make use of _sdram_write_leveling_bitslips in write latency calibration only for write leveling capable targets

This commit is contained in:
Mikołaj Sowiński 2021-11-10 14:01:15 +01:00
parent 6b8a35a2f8
commit fd6162c87f

View file

@ -1045,10 +1045,14 @@ static void sdram_write_latency_calibration(void) {
} }
} }
#ifdef SDRAM_PHY_WRITE_LEVELING_CAPABLE
if (_sdram_write_leveling_bitslips[module] < 0) if (_sdram_write_leveling_bitslips[module] < 0)
bitslip = best_bitslip; bitslip = best_bitslip;
else else
bitslip = _sdram_write_leveling_bitslips[module]; bitslip = _sdram_write_leveling_bitslips[module];
#else
bitslip = best_bitslip;
#endif
if (bitslip == -1) if (bitslip == -1)
printf("m%d:- ", module); printf("m%d:- ", module);
else else