From ad23130a9ac8acad8d165dafa4c25cadcd38549b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Tue, 27 Apr 2021 10:54:32 +0200 Subject: [PATCH] software/liblitedram: use single iteration of dq-dqs training --- litex/soc/software/liblitedram/sdram.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index b1b10aedd..1aa882d50 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -1075,22 +1075,16 @@ static void sdram_read_leveling_best_bitslip(int module) static void sdram_write_dq_dqs_training(void) { - /* In the first iteration read leveling and DQ-DQS training may not be done optimally */ - const int n_iter = 2; int i; - int show; int module; - for (i = 0; i < n_iter; ++i) { - show = i == n_iter - 1; - for(module=0; module