soc/software/bios/sdram: ECP5 move strobe dly_sel
This commit is contained in:
parent
f84f57d651
commit
1f43906236
|
@ -419,6 +419,12 @@ static void read_delay_rst(int module) {
|
||||||
|
|
||||||
/* unsel module */
|
/* unsel module */
|
||||||
ddrphy_dly_sel_write(0);
|
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) {
|
static void read_delay_inc(int module) {
|
||||||
|
@ -430,6 +436,12 @@ static void read_delay_inc(int module) {
|
||||||
|
|
||||||
/* unsel module */
|
/* unsel module */
|
||||||
ddrphy_dly_sel_write(0);
|
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)
|
static void read_bitslip_rst(char m)
|
||||||
|
@ -943,12 +955,6 @@ int sdrlevel(void)
|
||||||
printf("\n");
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue