software/liblitedram: remove DDRPHY_CMD_DELAY support (no longer useful).
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 25 Jun 2020 07:01:33 +0000 (09:01 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 25 Jun 2020 07:01:33 +0000 (09:01 +0200)
litex/soc/software/liblitedram/sdram.c
litex/soc/software/liblitedram/sdram.h

index 0a6ff951697fe157dfaf36606573f3be65f547c1..933c71a45655be84a74daf1060fcbcf6b9e4e6f3 100644 (file)
@@ -164,24 +164,6 @@ void sdrwr(unsigned int addr)
 
 #ifdef CSR_DDRPHY_BASE
 
-#if defined(DDRPHY_CMD_DELAY)
-void ddrphy_cdly(unsigned int delay) {
-       printf("Setting clk/cmd delay to %d taps\n", delay);
-#if CSR_DDRPHY_EN_VTC_ADDR
-       ddrphy_en_vtc_write(0);
-#endif
-       ddrphy_cdly_rst_write(1);
-       while (delay > 0) {
-               ddrphy_cdly_inc_write(1);
-               cdelay(1000);
-               delay--;
-       }
-#if CSR_DDRPHY_EN_VTC_ADDR
-       ddrphy_en_vtc_write(1);
-#endif
-}
-#endif
-
 #ifdef SDRAM_PHY_WRITE_LEVELING_CAPABLE
 void sdrwlon(void)
 {
@@ -814,9 +796,6 @@ int sdrinit(void)
        sdrsw();
        init_sequence();
 #ifdef CSR_DDRPHY_BASE
-#ifdef DDRPHY_CMD_DELAY
-       ddrphy_cdly(DDRPHY_CMD_DELAY);
-#endif
 #if CSR_DDRPHY_EN_VTC_ADDR
        ddrphy_en_vtc_write(0);
 #endif
index 565e9b5154d00c86fe88e381655b2e1d6076a823..087d01013482be3fe24ec8aed1222d144cf04dcd 100644 (file)
@@ -19,8 +19,4 @@ int sdrlevel(void);
 
 int sdrinit(void);
 
-#if defined(DDRPHY_CMD_DELAY) || defined(USDDRPHY_DEBUG)
-void ddrphy_cdly(unsigned int delay);
-#endif
-
 #endif /* __SDRAM_H */