bios/sdram: only show read delays when they are valid.

This commit is contained in:
Florent Kermarrec 2018-12-19 11:19:47 +01:00
parent 67a2590235
commit ebe0d567f8
1 changed files with 4 additions and 1 deletions

View File

@ -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);