Skip to content

Commit

Permalink
soc/software/bios/sdram: add ECP5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Feb 25, 2019
1 parent 2fd6d0e commit 3dd529e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions litex/soc/software/bios/sdram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3dd529e

Please sign in to comment.