From: Florent Kermarrec Date: Mon, 8 Jan 2018 11:04:33 +0000 (+0100) Subject: bios/sdram: revert capability to do manual read leveling since still needed with... X-Git-Tag: 24jan2021_ls180~1769 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5681a3c1a9a842460db8ba4a13e44d692d3aa89b;p=litex.git bios/sdram: revert capability to do manual read leveling since still needed with some targets --- diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index ba1bd216..d9e3023d 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -598,7 +598,33 @@ int memtest(void) } #ifdef CSR_DDRPHY_BASE -int sdrlevel(void) +#ifdef READ_LEVELING_BITSLIP +int sdrlevel(void) /* manual */ +{ + int bitslip, delay, module; + int i; + sdram_dfii_control_write(DFII_CONTROL_SEL); + for(module=0; module<8; module++) { + ddrphy_dly_sel_write(1<