Merge pull request #359 from gregdavill/bios_ddr3_ecp5

soc/software/bios/sdram: On ECP5 strobe dly_sel after read leveling
This commit is contained in:
enjoy-digital 2020-01-26 11:44:14 +01:00 committed by GitHub
commit f9bc98ed4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -419,6 +419,12 @@ static void read_delay_rst(int module) {
/* unsel module */
ddrphy_dly_sel_write(0);
#ifdef ECP5DDRPHY
/* Sync all DQSBUFM's, By toggling all dly_sel (DQSBUFM.PAUSE) lines. */
ddrphy_dly_sel_write(0xFF);
ddrphy_dly_sel_write(0);
#endif
}
static void read_delay_inc(int module) {
@ -430,6 +436,12 @@ static void read_delay_inc(int module) {
/* unsel module */
ddrphy_dly_sel_write(0);
#ifdef ECP5DDRPHY
/* Sync all DQSBUFM's, By toggling all dly_sel (DQSBUFM.PAUSE) lines. */
ddrphy_dly_sel_write(0xFF);
ddrphy_dly_sel_write(0);
#endif
}
static void read_bitslip_rst(char m)
@ -943,6 +955,7 @@ int sdrlevel(void)
printf("\n");
}
return 1;
}
#endif