diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index 68520b903..1b137f4ec 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -811,7 +811,7 @@ static void sdram_leveling_center_module( int show; int working; int delay, delay_mid, delay_range; - int delay_min = -1, delay_min_next = -1, delay_max = -1; + int delay_min = -1, delay_max = -1; if (show_long) printf("m%d: |", module); @@ -862,12 +862,6 @@ static void sdram_leveling_center_module( if(!working && delay_max < 0) { delay_max = delay; } - /* Store next working delay to include wrapping around */ - if (!working) { - delay_min_next = -1; - } else if(working && delay_min_next < 0) { - delay_min_next = delay; - } delay++; if(delay >= SDRAM_PHY_DELAYS) break; @@ -1077,13 +1071,13 @@ static void sdram_write_dq_dqs_training(void) { int module; - for(module=0; module