blob: c366b08ac9503d4f91db60be2bd74292e8c93389 [file] [log] [blame]
Stefan Reinauer49428d82013-02-21 15:48:37 -08001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2011 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##
Stefan Reinauer49428d82013-02-21 15:48:37 -080015
16ramstage-y += ec.c
17
Kyösti Mälkki5c4b8482014-05-03 13:29:06 +030018romstage-y += chromeos.c
19ramstage-y += chromeos.c
Stefan Reinauer49428d82013-02-21 15:48:37 -080020ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += i915.c
21ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += i915io.c
Ronald G. Minnich665e3d22013-02-27 09:54:47 -080022ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += intel_dp.c
Stefan Reinauer49428d82013-02-21 15:48:37 -080023
24smm-$(CONFIG_HAVE_SMI_HANDLER) += mainboard_smi.c
25SPD_BIN = $(obj)/spd.bin
26
Stefan Reinauer49428d82013-02-21 15:48:37 -080027# Order of names in SPD_SOURCES is important!
28SPD_SOURCES = elpida_4Gb_1600_x16
29SPD_SOURCES += samsung_4Gb_1600_1.35v_x16
30SPD_SOURCES += micron_4Gb_1600_1.35v_x16
31
Stefan Reinauerf2e1f6a2013-02-28 00:12:18 +010032SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
Stefan Reinauer49428d82013-02-21 15:48:37 -080033
34# Include spd rom data
35$(SPD_BIN): $(SPD_DEPS)
Aaron Durbin3e91cff2015-04-01 08:49:41 -050036 for f in $+; \
37 do for c in $$(cat $$f | grep -v ^#); \
38 do printf $$(printf '\%o' 0x$$c); \
39 done; \
40 done > $@
Stefan Reinauer49428d82013-02-21 15:48:37 -080041
42cbfs-files-y += spd.bin
43spd.bin-file := $(SPD_BIN)
Martin Roth72a8e5e2015-03-24 16:02:27 -060044spd.bin-type := spd