blob: 49165adf3392d4a901b187994e942ae1db5848eb [file] [log] [blame]
Shawn Nematbakhshe9d060d2013-05-23 15:13:46 -07001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2012 Google Inc.
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; version 2 of the License.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14##
Shawn Nematbakhshe9d060d2013-05-23 15:13:46 -070015
16ramstage-$(CONFIG_EC_GOOGLE_CHROMEEC) += ec.c
17
Kyösti Mälkki5c4b8482014-05-03 13:29:06 +030018romstage-y += chromeos.c
19ramstage-y += chromeos.c
Ronald G. Minnich9518b562013-09-19 16:45:22 -070020ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += gma.c i915io.c
Shawn Nematbakhshe9d060d2013-05-23 15:13:46 -070021
22smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
23
24## DIMM SPD for on-board memory
25SPD_BIN = $(obj)/spd.bin
26
27# Order of names in SPD_SOURCES is important!
Shawn Nematbakhshebb8a1a2013-07-14 16:32:42 -070028SPD_SOURCES = Micron_4KTF25664HZ # 0: 4GB / CH0 + CH1
29SPD_SOURCES += Hynix_HMT425S6AFR6A # 1: 4GB / CH0 + CH1
30SPD_SOURCES += Elpida_EDJ4216EFBG # 2: 4GB / CH0 + CH1
31SPD_SOURCES += Micron_4KTF25664HZ # 3: Reserved / place holder
32SPD_SOURCES += Micron_4KTF25664HZ # 4: 2GB / CH0 + CH1
33SPD_SOURCES += Hynix_HMT425S6AFR6A # 5: 2GB / CH0 + CH1
34SPD_SOURCES += Elpida_EDJ4216EFBG # 6: 2GB / CH0 + CH1
Shawn Nematbakhshe9d060d2013-05-23 15:13:46 -070035
36SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
37
38# Include spd rom data
39$(SPD_BIN): $(SPD_DEPS)
Duncan Laurie414cd432013-06-20 14:53:35 -070040 for f in $+; \
Shawn Nematbakhshe9d060d2013-05-23 15:13:46 -070041 do for c in $$(cat $$f | grep -v ^#); \
Aaron Durbin3e91cff2015-04-01 08:49:41 -050042 do printf $$(printf '\%o' 0x$$c); \
Shawn Nematbakhshe9d060d2013-05-23 15:13:46 -070043 done; \
44 done > $@
45
46cbfs-files-y += spd.bin
47spd.bin-file := $(SPD_BIN)
Martin Roth72a8e5e2015-03-24 16:02:27 -060048spd.bin-type := spd