diff --git a/litex/soc/software/liblitedram/sdram_dbg.h b/litex/soc/software/liblitedram/sdram_dbg.h index 470ff26e6..830ef9320 100644 --- a/litex/soc/software/liblitedram/sdram_dbg.h +++ b/litex/soc/software/liblitedram/sdram_dbg.h @@ -1,6 +1,10 @@ #ifndef __SDRAM_DBG_H #define __SDRAM_DBG_H +#include + +#ifdef CSR_SDRAM_BASE + #include struct memory_error { @@ -48,4 +52,6 @@ int readback_add(struct readback *readback, unsigned int max_len, struct memory_ // Print errors that occured in `readback` that didn't occure in `other`. Returns number of errors. int readback_compare(struct readback *readback, struct readback *other, int verbose); +#endif /* CSR_SDRAM_BASE */ + #endif /* __SDRAM_DBG_H */