Merge pull request #490 from daveshah1/rdimm_bside_init
Add RDIMM side-B inversion support
This commit is contained in:
commit
80f5327e3d
|
@ -191,6 +191,13 @@ void sdrwlon(void)
|
||||||
sdram_dfii_pi0_address_write(DDRX_MR1 | (1 << 7));
|
sdram_dfii_pi0_address_write(DDRX_MR1 | (1 << 7));
|
||||||
sdram_dfii_pi0_baddress_write(1);
|
sdram_dfii_pi0_baddress_write(1);
|
||||||
command_p0(DFII_COMMAND_RAS|DFII_COMMAND_CAS|DFII_COMMAND_WE|DFII_COMMAND_CS);
|
command_p0(DFII_COMMAND_RAS|DFII_COMMAND_CAS|DFII_COMMAND_WE|DFII_COMMAND_CS);
|
||||||
|
|
||||||
|
#ifdef SDRAM_PHY_DDR4_RDIMM
|
||||||
|
sdram_dfii_pi0_address_write((DDRX_MR1 | (1 << 7)) ^ 0x2BF8) ;
|
||||||
|
sdram_dfii_pi0_baddress_write(1 ^ 0xF);
|
||||||
|
command_p0(DFII_COMMAND_RAS|DFII_COMMAND_CAS|DFII_COMMAND_WE|DFII_COMMAND_CS);
|
||||||
|
#endif
|
||||||
|
|
||||||
ddrphy_wlevel_en_write(1);
|
ddrphy_wlevel_en_write(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,6 +206,13 @@ void sdrwloff(void)
|
||||||
sdram_dfii_pi0_address_write(DDRX_MR1);
|
sdram_dfii_pi0_address_write(DDRX_MR1);
|
||||||
sdram_dfii_pi0_baddress_write(1);
|
sdram_dfii_pi0_baddress_write(1);
|
||||||
command_p0(DFII_COMMAND_RAS|DFII_COMMAND_CAS|DFII_COMMAND_WE|DFII_COMMAND_CS);
|
command_p0(DFII_COMMAND_RAS|DFII_COMMAND_CAS|DFII_COMMAND_WE|DFII_COMMAND_CS);
|
||||||
|
|
||||||
|
#ifdef SDRAM_PHY_DDR4_RDIMM
|
||||||
|
sdram_dfii_pi0_address_write(DDRX_MR1 ^ 0x2BF8);
|
||||||
|
sdram_dfii_pi0_baddress_write(1 ^ 0xF);
|
||||||
|
command_p0(DFII_COMMAND_RAS|DFII_COMMAND_CAS|DFII_COMMAND_WE|DFII_COMMAND_CS);
|
||||||
|
#endif
|
||||||
|
|
||||||
ddrphy_wlevel_en_write(0);
|
ddrphy_wlevel_en_write(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue