diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index a0e2bcde9..158f8bc9c 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -128,7 +128,7 @@ static void sdram_write_leveling_off(void) } static void sdram_write_leveling_rst_delay(int module) { -#ifdef SDRAM_PHY_sdram_write_leveling_REINIT +#ifdef SDRAM_PHY_WRITE_LEVELING_REINIT int i; #endif @@ -138,7 +138,7 @@ static void sdram_write_leveling_rst_delay(int module) { /* rst delay */ ddrphy_wdly_dq_rst_write(1); ddrphy_wdly_dqs_rst_write(1); -#ifdef SDRAM_PHY_sdram_write_leveling_REINIT +#ifdef SDRAM_PHY_WRITE_LEVELING_REINIT for(i=0; i