forked from M-Labs/artiq
Bootloader: SDRAM patch for EFC
- Modification of the CFG flag ensure EFC to initialize DDRPHY correctly Note that Kasli and EFC share the same model of SDRAM
This commit is contained in:
parent
c206e92f29
commit
758b97426a
|
@ -217,7 +217,7 @@ mod ddr {
|
|||
ddrphy::dly_sel_write(1 << (DQS_SIGNAL_COUNT - n - 1));
|
||||
|
||||
ddrphy::rdly_dq_rst_write(1);
|
||||
#[cfg(soc_platform = "kasli")]
|
||||
#[cfg(any(soc_platform = "kasli", soc_platform = "efc"))]
|
||||
{
|
||||
for _ in 0..3 {
|
||||
ddrphy::rdly_dq_bitslip_write(1);
|
||||
|
@ -308,7 +308,7 @@ mod ddr {
|
|||
let mut max_seen_valid = 0;
|
||||
|
||||
ddrphy::rdly_dq_rst_write(1);
|
||||
#[cfg(soc_platform = "kasli")]
|
||||
#[cfg(any(soc_platform = "kasli", soc_platform = "efc"))]
|
||||
{
|
||||
for _ in 0..3 {
|
||||
ddrphy::rdly_dq_bitslip_write(1);
|
||||
|
@ -371,7 +371,7 @@ mod ddr {
|
|||
|
||||
// Set delay to the middle
|
||||
ddrphy::rdly_dq_rst_write(1);
|
||||
#[cfg(soc_platform = "kasli")]
|
||||
#[cfg(any(soc_platform = "kasli", soc_platform = "efc"))]
|
||||
{
|
||||
for _ in 0..3 {
|
||||
ddrphy::rdly_dq_bitslip_write(1);
|
||||
|
|
Loading…
Reference in New Issue