bios/sdram: fix read_level_scan result

This commit is contained in:
Florent Kermarrec 2018-08-14 18:33:28 +02:00
parent e07ca05749
commit 1610a7f3fb
1 changed files with 2 additions and 2 deletions

View File

@ -446,8 +446,8 @@ static int read_level_scan(int silent)
command_p0(DFII_COMMAND_RAS|DFII_COMMAND_WE|DFII_COMMAND_CS);
cdelay(15);
/* Successful if working and optimal or if number of working delays > 3/4 of the taps */
return (working & optimal) | (working_delays > 3*ERR_DDRPHY_DELAY/4);
/* Successful if working and optimal or number of working delays > 3/4 of the taps */
return working & (optimal | working_delays > 3*(DFII_PIX_DATA_SIZE/2)*ERR_DDRPHY_DELAY/4);
}
static void read_level(void)