diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index f7d8458c8..15d5e1e9f 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