From: Greg Davill Date: Sat, 25 Jan 2020 02:41:39 +0000 (+1030) Subject: soc/software/bios/sdram: On ECP5 strobe dly_sel after read leveling X-Git-Tag: 24jan2021_ls180~712^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f84f57d651eaf80f85e0bfa8c37f723be603ef1d;p=litex.git soc/software/bios/sdram: On ECP5 strobe dly_sel after read leveling --- diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index f7d8458c..15d5e1e9 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -943,6 +943,13 @@ int sdrlevel(void) printf("\n"); } +#ifdef ECP5DDRPHY + /* Toggle all dly_sel lines. + * Which toggles all DQSBUFM.PAUSE lines, this ensures they're using the correct delays. */ + ddrphy_dly_sel_write(0xFF); + ddrphy_dly_sel_write(0); +#endif + return 1; } #endif