TianoCore EDK2 master
Loading...
Searching...
No Matches
SdramSpd.h
Go to the documentation of this file.
1
8#ifndef _SDRAM_SPD_H_
9#define _SDRAM_SPD_H_
10
14
15//
16// SDRAM SPD field definitions
17//
18#define SPD_MEMORY_TYPE 2
19#define SPD_SDRAM_ROW_ADDR 3
20#define SPD_SDRAM_COL_ADDR 4
21#define SPD_SDRAM_MODULE_ROWS 5
22#define SPD_SDRAM_MODULE_DATA_WIDTH_LSB 6
23#define SPD_SDRAM_MODULE_DATA_WIDTH_MSB 7
24#define SPD_SDRAM_ECC_SUPPORT 11
25#define SPD_SDRAM_REFRESH 12
26#define SPD_SDRAM_WIDTH 13
27#define SPD_SDRAM_ERROR_WIDTH 14
28#define SPD_SDRAM_BURST_LENGTH 16
29#define SPD_SDRAM_NO_OF_BANKS 17
30#define SPD_SDRAM_CAS_LATENCY 18
31#define SPD_SDRAM_MODULE_ATTR 21
32
33#define SPD_SDRAM_TCLK1_PULSE 9
34#define SPD_SDRAM_TAC1_PULSE 10
35#define SPD_SDRAM_TCLK2_PULSE 23
36#define SPD_SDRAM_TAC2_PULSE 24
37#define SPD_SDRAM_TCLK3_PULSE 25
38#define SPD_SDRAM_TAC3_PULSE 26
39#define SPD_SDRAM_MIN_PRECHARGE 27
40#define SPD_SDRAM_ACTIVE_MIN 28
41#define SPD_SDRAM_RAS_CAS 29
42#define SPD_SDRAM_RAS_PULSE 30
43#define SPD_SDRAM_DENSITY 31
44
45//
46// Memory Type Definitions
47//
48#define SPD_VAL_SDR_TYPE 4
49#define SPD_VAL_DDR_TYPE 7
50#define SPD_VAL_DDR2_TYPE 8
51#define SPD_VAL_DDR3_TYPE 11
52#define SPD_VAL_DDR4_TYPE 12
53#define SPD_VAL_LPDDR3_TYPE 15
54#define SPD_VAL_LPDDR4_TYPE 16
55
56//
57// ECC Type Definitions
58//
59#define SPD_ECC_TYPE_NONE 0x00
60#define SPD_ECC_TYPE_PARITY 0x01
61#define SPD_ECC_TYPE_ECC 0x02
62//
63// Module Attributes (Bit positions)
64//
65#define SPD_BUFFERED 0x01
66#define SPD_REGISTERED 0x02
67
68#endif