mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Make use of _sdram_write_leveling_bitslips in write latency calibration only for write leveling capable targets
This commit is contained in:
parent
6b8a35a2f8
commit
fd6162c87f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue