software/liblitedram/accessors: Fix conditions for write_dq_bitslip functions compilations.
Fixes #1583.
This commit is contained in:
parent
8ad728cd22
commit
a6d9955c9d
|
@ -106,7 +106,7 @@ void write_rst_delay(int module) {
|
||||||
/* Bitslip Delays Reset/Increment Functions */
|
/* Bitslip Delays Reset/Increment Functions */
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#if defined(SDRAM_PHY_BITSLIPS)
|
#if defined(SDRAM_PHY_BITSLIPS) && defined(SDRAM_PHY_READ_LEVELING_CAPABLE)
|
||||||
|
|
||||||
int read_dq_bitslip[SDRAM_PHY_MODULES];
|
int read_dq_bitslip[SDRAM_PHY_MODULES];
|
||||||
void read_inc_dq_bitslip(int module) {
|
void read_inc_dq_bitslip(int module) {
|
||||||
|
@ -121,6 +121,10 @@ void read_rst_dq_bitslip(int module) {
|
||||||
ddrphy_rdly_dq_bitslip_rst_write(1);
|
ddrphy_rdly_dq_bitslip_rst_write(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // defined(SDRAM_PHY_BITSLIPS) && defined(SDRAM_PHY_READ_LEVELING_CAPABLE)
|
||||||
|
|
||||||
|
#if defined(SDRAM_PHY_BITSLIPS) && defined(SDRAM_PHY_WRITE_LEVELING_CAPABLE)
|
||||||
|
|
||||||
int write_dq_bitslip[SDRAM_PHY_MODULES];
|
int write_dq_bitslip[SDRAM_PHY_MODULES];
|
||||||
void write_inc_dq_bitslip(int module) {
|
void write_inc_dq_bitslip(int module) {
|
||||||
/* Increment bitslip */
|
/* Increment bitslip */
|
||||||
|
@ -134,7 +138,7 @@ void write_rst_dq_bitslip(int module) {
|
||||||
ddrphy_wdly_dq_bitslip_rst_write(1);
|
ddrphy_wdly_dq_bitslip_rst_write(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // defined(SDRAM_PHY_BITSLIPS)
|
#endif // defined(SDRAM_PHY_BITSLIPS) && defined(SDRAM_PHY_WRITE_LEVELING_CAPABLE)
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
/* SDRAM Module Selection Functions */
|
/* SDRAM Module Selection Functions */
|
||||||
|
|
|
@ -50,17 +50,22 @@ void write_rst_delay(int module);
|
||||||
/* Bitslip Delays Reset/Increment Functions */
|
/* Bitslip Delays Reset/Increment Functions */
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#if defined(SDRAM_PHY_BITSLIPS)
|
#if defined(SDRAM_PHY_BITSLIPS) && defined(SDRAM_PHY_READ_LEVELING_CAPABLE)
|
||||||
|
|
||||||
extern int read_dq_bitslip[SDRAM_PHY_MODULES];
|
extern int read_dq_bitslip[SDRAM_PHY_MODULES];
|
||||||
void read_inc_dq_bitslip(int module);
|
void read_inc_dq_bitslip(int module);
|
||||||
void read_rst_dq_bitslip(int module);
|
void read_rst_dq_bitslip(int module);
|
||||||
|
|
||||||
|
#endif // defined(SDRAM_PHY_BITSLIPS) && defined(SDRAM_PHY_READ_LEVELING_CAPABLE)
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(SDRAM_PHY_BITSLIPS) && defined(SDRAM_PHY_WRITE_LEVELING_CAPABLE)
|
||||||
|
|
||||||
extern int write_dq_bitslip[SDRAM_PHY_MODULES];
|
extern int write_dq_bitslip[SDRAM_PHY_MODULES];
|
||||||
void write_inc_dq_bitslip(int module);
|
void write_inc_dq_bitslip(int module);
|
||||||
void write_rst_dq_bitslip(int module);
|
void write_rst_dq_bitslip(int module);
|
||||||
|
|
||||||
#endif // defined(SDRAM_PHY_BITSLIPS)
|
#endif // defined(SDRAM_PHY_BITSLIPS) && defined(SDRAM_PHY_WRITE_LEVELING_CAPABLE)
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
/* SDRAM Module Selection Functions */
|
/* SDRAM Module Selection Functions */
|
||||||
|
|
Loading…
Reference in New Issue