2012-08-04 10:32:15 -04:00
|
|
|
#ifndef __SDRAM_H
|
|
|
|
#define __SDRAM_H
|
2012-02-17 12:47:04 -05:00
|
|
|
|
2014-09-03 02:25:26 -04:00
|
|
|
#include <generated/csr.h>
|
|
|
|
|
2014-05-23 15:31:26 -04:00
|
|
|
void sdrsw(void);
|
|
|
|
void sdrhw(void);
|
|
|
|
void sdrrow(char *_row);
|
2014-09-01 02:58:58 -04:00
|
|
|
void sdrrdbuf(int dq);
|
|
|
|
void sdrrd(char *startaddr, char *dq);
|
2014-09-01 03:23:37 -04:00
|
|
|
void sdrrderr(char *count);
|
2014-05-23 15:31:26 -04:00
|
|
|
void sdrwr(char *startaddr);
|
2014-09-03 02:25:26 -04:00
|
|
|
|
2015-03-02 06:25:59 -05:00
|
|
|
#ifdef CSR_DDRPHY_BASE
|
2014-09-03 02:25:26 -04:00
|
|
|
void sdrwlon(void);
|
|
|
|
void sdrwloff(void);
|
|
|
|
int sdrlevel(void);
|
|
|
|
#endif
|
|
|
|
|
2012-05-15 13:29:26 -04:00
|
|
|
int memtest_silent(void);
|
2013-02-24 10:51:03 -05:00
|
|
|
int memtest(void);
|
2014-05-23 15:31:26 -04:00
|
|
|
int sdrinit(void);
|
2012-02-17 12:47:04 -05:00
|
|
|
|
2012-08-04 10:32:15 -04:00
|
|
|
#endif /* __SDRAM_H */
|