From: Florent Kermarrec Date: Wed, 19 Dec 2018 10:19:47 +0000 (+0100) Subject: bios/sdram: only show read delays when they are valid. X-Git-Tag: 24jan2021_ls180~1430 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebe0d567f8a5d16f2fac4bac0391e2ae59139d99;p=litex.git bios/sdram: only show read delays when they are valid. --- diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index b00f615e..ef3280de 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -508,7 +508,10 @@ static void read_level(int module) } delay_max = delay; - printf("%02d+-%02d", (delay_min+delay_max)/2, (delay_max-delay_min)/2); + if (delay_min >= ERR_DDRPHY_DELAY) + printf("-"); + else + printf("%02d+-%02d", (delay_min+delay_max)/2, (delay_max-delay_min)/2); /* Set delay to the middle */ ddrphy_rdly_dq_rst_write(1);