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
11 SPD_BIN = $(obj)/spd.bin
13 # SPD data by index. No method for board identification yet
14 SPD_SOURCES = micron_4GiB_dimm_MT52L256M32D1PF # 0b0000
15 SPD_SOURCES += samsung_dimm_K4E8E324EB-EGCF # 0b0001
16 SPD_SOURCES += micron_8GiB_dimm_MT52L512M32D2PF # 0b0010
17 SPD_SOURCES += samsung_dimm_K4E6E304EB-EGCF # 0b0011
18 SPD_SOURCES += micron_16GiB_dimm_MT52L1G32D4PG # 0b0100
19 SPD_SOURCES += hynix_dimm_H9CCNNNCLTMLAR # 0b0101
21 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
23 # Include spd ROM data
24 $(SPD_BIN): $(SPD_DEPS)
26 do for c in $$(cat $$f | grep -v ^#); \
27 do printf $$(printf '\%o' 0x$$c); \
31 cbfs-files-y += spd.bin
32 spd.bin-file := $(SPD_BIN)