2 ## This file is part of the coreboot project.
5 ## SPDX-License-Identifier: GPL-2.0-only
9 SPD_BIN = $(obj)/spd.bin
11 # { GPIO47, GPIO9, GPIO13 }
12 SPD_SOURCES = Micron_4KTF25664HZ # 0b0000
13 SPD_SOURCES += Hynix_HMT425S6AFR6A # 0b0001
14 SPD_SOURCES += Hynix_HMT425S6CFR6A_H5TC4G63CFR # 0b0010
15 SPD_SOURCES += Micron_4KTF25664HZ # 0b0011
16 SPD_SOURCES += Micron_4KTF25664HZ # 0b0100
17 SPD_SOURCES += Hynix_HMT425S6AFR6A # 0b0101
18 SPD_SOURCES += Hynix_HMT425S6CFR6A_H5TC4G63CFR # 0b0110
19 SPD_SOURCES += empty # 0b0111
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
29 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/spd/$(f).spd.hex)
31 # Include spd ROM data
32 $(SPD_BIN): $(SPD_DEPS)
34 do for c in $$(cat $$f | grep -v ^#); \
35 do printf $$(printf '\\%o' 0x$$c); \
39 cbfs-files-y += spd.bin
40 spd.bin-file := $(SPD_BIN)