From: Florent Kermarrec Date: Mon, 17 Dec 2018 10:43:21 +0000 (+0100) Subject: bios/sdram: use ddrphy_half_sys8x_taps_read() for KUSDDRPHY X-Git-Tag: 24jan2021_ls180~1437 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efce434aa96ea6e435c4ba5f72ddc85bac488be9;p=litex.git bios/sdram: use ddrphy_half_sys8x_taps_read() for KUSDDRPHY --- diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index fbd9afa8..1cd47e9e 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -253,11 +253,7 @@ int write_level(void) int ok; -#ifdef KUSDDRPHY - err_ddrphy_wdly = ERR_DDRPHY_DELAY; /* FIXME */ -#else err_ddrphy_wdly = ERR_DDRPHY_DELAY - ddrphy_half_sys8x_taps_read() - 1; -#endif printf("Write leveling:\n"); @@ -272,7 +268,7 @@ int write_level(void) ddrphy_wdly_dq_rst_write(1); ddrphy_wdly_dqs_rst_write(1); #ifdef KUSDDRPHY /* need to init manually on Ultrascale */ - for(j=0; j