Loading files
#ifndef __SDRAM_H
#define __SDRAM_H
#ifdef __cplusplus
extern "C" {
#endif
#include <generated/csr.h>
/*-----------------------------------------------------------------------*/
/* Constants */
/*-----------------------------------------------------------------------*/
int sdram_get_databits(void);
int sdram_get_freq(void);
int sdram_get_cl(void);
int sdram_get_cwl(void);
/*-----------------------------------------------------------------------*/
/* Software/Hardware Control */
/*-----------------------------------------------------------------------*/
void sdram_software_control_on(void);
void sdram_software_control_off(void);
/*-----------------------------------------------------------------------*/
/* Mode Register */
/*-----------------------------------------------------------------------*/
void sdram_mode_register_write(char reg, int value);
/*-----------------------------------------------------------------------*/
/* Write Leveling */
/*-----------------------------------------------------------------------*/
void sdram_write_leveling_rst_cmd_delay(int show);
void sdram_write_leveling_force_cmd_delay(int taps, int show);
int sdram_write_leveling(void);
/*-----------------------------------------------------------------------*/
/* Read Leveling */
/*-----------------------------------------------------------------------*/
void sdram_read_leveling(void);
/*-----------------------------------------------------------------------*/
/* Leveling */
/*-----------------------------------------------------------------------*/
int sdram_leveling(void);
/*-----------------------------------------------------------------------*/
/* Initialization */
/*-----------------------------------------------------------------------*/
#ifdef CONFIG_SDRAM_CUSTOM_INIT
/* Implement this when CONFIG_SDRAM_CUSTOM_INIT is defined. Return 1 after
* successful memory-specific initialization and calibration, or 0 on error.
* The common sdram_init() path retains controller handoff and memory tests. */
int sdram_custom_init(void);
#endif
int sdram_init(void);
/*-----------------------------------------------------------------------*/
/* Debugging */
/*-----------------------------------------------------------------------*/
void sdram_debug(void);
#ifdef __cplusplus
}
#endif
#endif /* __SDRAM_H */
6ccd314b2This file is pinned to the selected release. Download the original to open it in your design tool.