blob: 986bdd8552163b10bf04dfa58621acac80057cbc [file] [log] [blame]
Duncan Laurie09170f12015-10-09 09:25:32 -07001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2015 Google Inc.
5## Copyright (C) 2015 Intel Corporation
6##
7## This program is free software; you can redistribute it and/or modify
8## it under the terms of the GNU General Public License as published by
9## the Free Software Foundation; version 2 of the License.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
Duncan Laurie09170f12015-10-09 09:25:32 -070016
Matt DeVillier39f3c7e2018-07-07 18:45:23 -050017romstage-y += variant.c
18ramstage-y += variant.c
Kyösti Mälkki9265f892019-07-07 23:58:34 +030019smm-y += variant.c
Duncan Laurie09170f12015-10-09 09:25:32 -070020
21SPD_BIN = $(obj)/spd.bin
22
23# SPD data by index. No method for board identification yet
Duncan Laurief16bb7c2015-10-09 09:25:32 -070024SPD_SOURCES = samsung_dimm_K4E8E304EE-EGCF # 0b0000
Duncan Laurie09170f12015-10-09 09:25:32 -070025SPD_SOURCES += samsung_dimm_K4E6E304EE-EGCF # 0b0001
Aaron Durbinf969d4a2015-10-16 09:37:19 -050026SPD_SOURCES += hynix_dimm_H9CCNNN8GTMLAR # 0b0010
27SPD_SOURCES += hynix_dimm_H9CCNNNBJTMLAR # 0b0011
Duncan Lauriea85f3ae2015-11-05 17:08:25 -080028SPD_SOURCES += hynix_dimm_H9CCNNNCLTMLAR # 0b0100
Duncan Laurie31fa7492016-01-14 10:20:17 -080029SPD_SOURCES += samsung_dimm_K4E6E304EB-EGCF # 0b0101
Matt DeVillierc4f9f4b2017-11-09 09:45:51 -060030SPD_SOURCES += samsung_dimm_K4EBE304EB-EGCF # 0b0110
31SPD_SOURCES += samsung_dimm_K4E8E324EB-EGCF # 0b0111
32SPD_SOURCES += hynix_dimm_H9CCNNNBJTALAR # 0b1000
33SPD_SOURCES += hynix_dimm_H9CCNNNCLGALAR # 0b1001
34SPD_SOURCES += hynix_dimm_H9CCNNN8GTALAR # 0b1010
Duncan Laurie09170f12015-10-09 09:25:32 -070035
36SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
37
Elyes HAOUAS8ab989e2016-07-30 17:46:17 +020038# Include spd ROM data
Duncan Laurie09170f12015-10-09 09:25:32 -070039$(SPD_BIN): $(SPD_DEPS)
40 for f in $+; \
41 do for c in $$(cat $$f | grep -v ^#); \
42 do printf $$(printf '\%o' 0x$$c); \
43 done; \
44 done > $@
45
46cbfs-files-y += spd.bin
47spd.bin-file := $(SPD_BIN)
48spd.bin-type := spd