diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index 0dd9e213a..86c5e9b98 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -873,6 +873,8 @@ int sdrinit(void) /* MPR access */ /*-----------------------------------------------------------------------*/ +#ifdef SDRAM_PHY_MODULES + #define MPR0_SEL (0 << 0) #define MPR1_SEL (1 << 0) #define MPR2_SEL (2 << 0) @@ -936,3 +938,5 @@ void sdrmpr(void) } #endif + +#endif