soc/software/bios/sdram: add ECP5 support

This commit is contained in:
Florent Kermarrec 2019-02-25 14:40:47 +01:00
parent 2fd6d0e7e1
commit 3dd529e40b
1 changed files with 6 additions and 3 deletions

View File

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