spd.h: Add all known SPD_MEMORY_TYPE definitions.
This file was missing some definitions, so add them. Also turn the defines into an enum. The reason for doing this is that functions can now explicitly take an spd_memory_type as a parameter: > int do_something_with_dram(enum spd_memory_type type, ...) Which is a lot more explicit and readable than: > int do_something_with_dram(u8 type, ...) These are used in the VX900 branch. Change-Id: Ic7871e82c2523a94eac8e07979a8e34e0b459b46 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/3266 Tested-by: build bot (Jenkins)
This commit is contained in:
parent
8e4bb92898
commit
32610462d1
|
@ -108,15 +108,20 @@
|
||||||
|
|
||||||
|
|
||||||
/* SPD_MEMORY_TYPE values. */
|
/* SPD_MEMORY_TYPE values. */
|
||||||
#define SPD_MEMORY_TYPE_FPM_DRAM 1
|
enum spd_memory_type {
|
||||||
#define SPD_MEMORY_TYPE_EDO 2
|
SPD_MEMORY_TYPE_UNDEFINED = 0x00,
|
||||||
#define SPD_MEMORY_TYPE_PIPELINED_NIBBLE 3
|
SPD_MEMORY_TYPE_FPM_DRAM = 0x01,
|
||||||
#define SPD_MEMORY_TYPE_SDRAM 4
|
SPD_MEMORY_TYPE_EDO = 0x02,
|
||||||
#define SPD_MEMORY_TYPE_MULTIPLEXED_ROM 5
|
SPD_MEMORY_TYPE_PIPELINED_NIBBLE = 0x03,
|
||||||
#define SPD_MEMORY_TYPE_SGRAM_DDR 6
|
SPD_MEMORY_TYPE_SDRAM = 0x04,
|
||||||
#define SPD_MEMORY_TYPE_SDRAM_DDR 7
|
SPD_MEMORY_TYPE_MULTIPLEXED_ROM = 0x05,
|
||||||
#define SPD_MEMORY_TYPE_SDRAM_DDR2 8
|
SPD_MEMORY_TYPE_SGRAM_DDR = 0x06,
|
||||||
#define SPD_MEMORY_TYPE_SDRAM_DDR3 0xb
|
SPD_MEMORY_TYPE_SDRAM_DDR = 0x07,
|
||||||
|
SPD_MEMORY_TYPE_SDRAM_DDR2 = 0x08,
|
||||||
|
SPD_MEMORY_TYPE_FBDIMM_DDR2 = 0x09,
|
||||||
|
SPD_MEMORY_TYPE_FB_PROBE_DDR2 = 0x0a,
|
||||||
|
SPD_MEMORY_TYPE_SDRAM_DDR3 = 0x0b,
|
||||||
|
};
|
||||||
|
|
||||||
/* SPD_MODULE_VOLTAGE values. */
|
/* SPD_MODULE_VOLTAGE values. */
|
||||||
#define SPD_VOLTAGE_TTL 0 /* 5.0 Volt/TTL */
|
#define SPD_VOLTAGE_TTL 0 /* 5.0 Volt/TTL */
|
||||||
|
|
Loading…
Reference in New Issue