soc/software/bios/sdram: On ECP5 strobe dly_sel after read leveling
authorGreg Davill <greg.davill@gmail.com>
Sat, 25 Jan 2020 02:41:39 +0000 (13:11 +1030)
committerGreg Davill <greg.davill@gmail.com>
Sat, 25 Jan 2020 02:41:39 +0000 (13:11 +1030)
litex/soc/software/bios/sdram.c

index f7d8458c8e0eef89ca868687653a02228891967a..15d5e1e9fa6522847ac15f24fb9f51fce6aefbc7 100644 (file)
@@ -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