From c247814ed4e81cbaf15cb76cccf3260d39f16743 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 5 Sep 2020 11:37:07 +0200 Subject: [PATCH] software/liblitedram/sdram.c: add ifdef on MPR functions. --- litex/soc/software/liblitedram/sdram.c | 4 ++++ 1 file changed, 4 insertions(+) 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