software/liblitedram: Fix compilation on designs without SDRAM.
This commit is contained in:
parent
aa2622b1f5
commit
12b27f961c
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue