diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index cd06491a0..59cfa8a92 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -203,6 +203,7 @@ void sdrwr(char *startaddr) #else #define ERR_DDRPHY_DELAY 32 #endif +#define ERR_DDRPHY_BITSLIP 8 #ifdef CSR_DDRPHY_WLEVEL_EN_ADDR @@ -748,14 +749,15 @@ int sdrlevel(void) return 0; #endif /* check for optimal read leveling window */ - for(i=0; i<8; i++) { - if (read_level_scan(1)) { + for(i=0; i