8 #ifndef DEVICE_DRAM_DDR2L_H
9 #define DEVICE_DRAM_DDR2L_H
158 #define SPD_SIZE_MAX_DDR2 128
u8 spd_get_msbs(u8 c)
Return index of MSB set.
void normalize_tck(u32 *tclk)
#define SPD_SIZE_MAX_DDR2
Maximum SPD size supported.
void dram_print_spd_ddr2(const struct dimm_attr_ddr2_st *dimm)
Print the info in DIMM.
u8 spd_ddr2_calc_checksum(u8 *spd, int len)
Calculate the checksum of a DDR2 SPD unique identifier.
u16 spd_ddr2_calc_unique_crc(const u8 *spd, int len)
Calculate the CRC of a DDR2 SPD unique identifier.
@ SPD_DDR2_DIMM_TYPE_UDIMM
@ SPD_DDR2_DIMM_TYPE_MICRO_DIMM
@ SPD_DDR2_DIMM_TYPE_MINI_UDIMM
@ SPD_DDR2_DIMM_TYPE_MASK
@ SPD_DDR2_DIMM_TYPE_MINI_RDIMM
@ SPD_DDR2_DIMM_TYPE_72B_SO_RDIMM
@ SPD_DDR2_DIMM_TYPE_RDIMM
@ SPD_DDR2_DIMM_TYPE_UNDEFINED
@ SPD_DDR2_DIMM_TYPE_SO_DIMM
@ SPD_DDR2_DIMM_TYPE_72B_SO_CDIMM
int spd_decode_ddr2(struct dimm_attr_ddr2_st *dimm, u8 spd[SPD_SIZE_MAX_DDR2])
Decode the raw SPD data.
u32 spd_decode_spd_size_ddr2(u8 byte0)
Return size of SPD.
int spd_dimm_is_registered_ddr2(enum spd_dimm_type_ddr2 type)
Checks if the DIMM is Registered based on byte[20] of the SPD.
u32 spd_decode_eeprom_size_ddr2(u8 byte1)
Return size of eeprom.
enum spd_dimm_type_ddr2 dimm_type
enum spd_memory_type dram_type
union dimm_flags_ddr2_st flags
#define c(value, pmcreg, dst_bits)
unsigned int operable_1_50V
unsigned int operable_5_00V
unsigned int operable_1_80V
unsigned int operable_3_33V
unsigned int terminate_50ohms
unsigned int operable_1_25V
unsigned int self_refresh
unsigned int operable_2_50V
unsigned int operable_1_35V