mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
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:
commit
f9bc98ed4c
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue