bios/sdram: reduce write leveling scan range
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 19 Dec 2018 10:18:19 +0000 (11:18 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 19 Dec 2018 10:18:19 +0000 (11:18 +0100)
litex/soc/software/bios/sdram.c

index 383cc3ef41bda49767267e94508ed1722aeb674e..b00f615e4aadf2bf62eb25dc6ffe0c454cc96de6 100644 (file)
@@ -253,7 +253,7 @@ int write_level(void)
 
     int ok;
 
-       err_ddrphy_wdly = ERR_DDRPHY_DELAY - ddrphy_half_sys8x_taps_read() - 1;
+       err_ddrphy_wdly = (ERR_DDRPHY_DELAY*14)/16 - ddrphy_half_sys8x_taps_read();
 
        printf("Write leveling:\n");