From 87c0e30cef1a6dc50753d4ca355ba62b7c97a315 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 28 Apr 2021 10:45:35 +0200 Subject: [PATCH] software/liblitedram/sdram.c: Remove residual wrap around code, fix some spaces/tabs. --- litex/soc/software/liblitedram/sdram.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) 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