software/liblitedram: Fix compilation on designs without SDRAM.

This commit is contained in:
Florent Kermarrec 2021-05-19 11:05:51 +02:00
parent aa2622b1f5
commit 12b27f961c
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,10 @@
#ifndef __SDRAM_DBG_H #ifndef __SDRAM_DBG_H
#define __SDRAM_DBG_H #define __SDRAM_DBG_H
#include <generated/csr.h>
#ifdef CSR_SDRAM_BASE
#include <generated/sdram_phy.h> #include <generated/sdram_phy.h>
struct memory_error { 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. // 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); int readback_compare(struct readback *readback, struct readback *other, int verbose);
#endif /* CSR_SDRAM_BASE */
#endif /* __SDRAM_DBG_H */ #endif /* __SDRAM_DBG_H */