software/bios/sdram: use specific ERR_DDRPHY_BITSLIP/NMODULES computation
In the future, the PHYs should generated these constants.
This commit is contained in:
parent
7de1fe519a
commit
317dba8314
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue