src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / mainboard / google / rambi / variants / enguarde / Makefile.inc
blob9beb8ffaa2414d54418c8def006c3c78d28d8b3e
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ##
5 ## SPDX-License-Identifier: GPL-2.0-only
7 SPD_BIN = $(obj)/spd.bin
9 # Order matters for SPD sources. The following indices
10 # define the SPD data to use.
11 # 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
12 # 0b001 - 4GiB total - 2 x 2GiB Hynix  H5TC4G63AFR-PBA 1600MHz
13 # 0b010 - 2GiB total - 2 x 1GiB Micron MT41K128M16JT-125:K 1600MHz
14 # 0b011 - 2GiB total - 2 x 1GiB Hynix  H5TC2G63FFR-PBA 1600MHz
15 # 0b100 - 2GiB total - 1 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
16 # 0b101 - 2GiB total - 2 x 1GiB Samsung K4B2G1646Q-BYK0 1600MHz
17 # 0b110 - 4GiB total - 2 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz
18 # 0b111 - 2GiB total - 1 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz
19 SPD_SOURCES = micron_2GiB_dimm_MT41K256M16HA-125
20 SPD_SOURCES += hynix_2GiB_dimm_H5TC4G63AFR-PBA
21 SPD_SOURCES += micron_1GiB_dimm_MT41K128M16JT-125
22 SPD_SOURCES += hynix_1GiB_dimm_H5TC2G63FFR-PBA
23 SPD_SOURCES += micron_2GiB_dimm_MT41K256M16HA-125
24 SPD_SOURCES += samsung_1GiB_dimm_K4B2G1646Q-BYK0
25 SPD_SOURCES += samsung_2GiB_dimm_K4B4G1646Q-HYK0
26 SPD_SOURCES += samsung_2GiB_dimm_K4B4G1646Q-HYK0
28 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
30 # Include spd rom data
31 $(SPD_BIN): $(SPD_DEPS)
32         for f in $+; \
33           do for c in $$(cat $$f | grep -v ^#); \
34             do printf $$(printf '\%o' 0x$$c); \
35           done; \
36         done > $@
38 cbfs-files-y += spd.bin
39 spd.bin-file := $(SPD_BIN)
40 spd.bin-type := spd