diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index 2828f3560..e3af84a02 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -1045,10 +1045,14 @@ static void sdram_write_latency_calibration(void) { } } + #ifdef SDRAM_PHY_WRITE_LEVELING_CAPABLE if (_sdram_write_leveling_bitslips[module] < 0) bitslip = best_bitslip; else bitslip = _sdram_write_leveling_bitslips[module]; + #else + bitslip = best_bitslip; + #endif if (bitslip == -1) printf("m%d:- ", module); else