2 ## This file is part of the coreboot project.
5 ## SPDX-License-Identifier: GPL-2.0-only
7 romstage-y += variant.c
8 ramstage-y += variant.c
10 SPD_BIN = $(obj)/spd.bin
12 SPD_SOURCES = hynix_dimm_H9CCNNN8GTMLAR-NUD # 0b0000 Dual Channel 4GB
13 SPD_SOURCES += micron_dimm_MT52L256M32D1PF-107-1G-1866 # 0b0001 Dual Channel 4GB
14 SPD_SOURCES += samsung_dimm_K4E8E304EE-EGCF # 0b0010 Dual Channel 4GB
15 SPD_SOURCES += samsung_dimm_K4E6E304EB-EGCF # 0b0011 Dual Channel 8GB
16 SPD_SOURCES += micron_dimm_MT52L512M32D2PF-107-2G-1866 # 0b0100 Dual Channel 8GB
17 SPD_SOURCES += samsung_dimm_K4E8E324EB-EGCF # 0b0101 Dual Channel 8GB
18 SPD_SOURCES += hynix_dimm_H9CCNNNBJTMLAR-NUD # 0b0110 Dual Channel 4GB
19 SPD_SOURCES += hynix_dimm_H9CCNNNBLTBLAR-NUD-2G-1866 # 0b0111 Dual Channel 8GB
20 SPD_SOURCES += empty # 0b1000
21 SPD_SOURCES += empty # 0b1001
22 SPD_SOURCES += empty # 0b1010
23 SPD_SOURCES += empty # 0b1011
24 SPD_SOURCES += empty # 0b1100
25 SPD_SOURCES += empty # 0b1101
26 SPD_SOURCES += empty # 0b1110
27 SPD_SOURCES += empty # 0b1111
30 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
32 # Include spd ROM data
33 $(SPD_BIN): $(SPD_DEPS)
35 do for c in $$(cat $$f | grep -v ^#); \
36 do printf $$(printf '\%o' 0x$$c); \
40 cbfs-files-y += spd.bin
41 spd.bin-file := $(SPD_BIN)