software/bios/sdram: use specific ERR_DDRPHY_BITSLIP/NMODULES computation

In the future, the PHYs should generated these constants.
This commit is contained in:
Florent Kermarrec 2019-03-05 18:01:03 +01:00
parent 7de1fe519a
commit 317dba8314
1 changed files with 5 additions and 4 deletions

View File

@ -210,17 +210,18 @@ void sdrwr(char *startaddr)
#if defined (USDDRPHY)
#define ERR_DDRPHY_DELAY 512
#define ERR_DDRPHY_BITSLIP DFII_NPHASES*2
#define ERR_DDRPHY_BITSLIP 8
#define NBMODULES DFII_PIX_DATA_SIZE/2
#elif defined (ECP5DDRPHY)
#define ERR_DDRPHY_DELAY 8
#define ERR_DDRPHY_BITSLIP 1
#define NBMODULES DFII_PIX_DATA_SIZE/4
#else
#define ERR_DDRPHY_DELAY 32
#define ERR_DDRPHY_BITSLIP DFII_NPHASES*2
#define ERR_DDRPHY_BITSLIP 8
#define NBMODULES DFII_PIX_DATA_SIZE/2
#endif
#define NBMODULES DFII_PIX_DATA_SIZE*DFII_NPHASES/8
#ifdef CSR_DDRPHY_WLEVEL_EN_ADDR
void sdrwlon(void)