Add support for Google's Chromebook Pixel
[coreboot.git] / src / mainboard / google / link / Makefile.inc
blob3f04a30d62a9af437aeffd3281c9e294552afa8d
1 ##
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.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 ramstage-y += ec.c
22 romstage-$(CONFIG_CHROMEOS) += chromeos.c
23 ramstage-$(CONFIG_CHROMEOS) += chromeos.c
24 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += i915.c
25 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += i915io.c
27 smm-$(CONFIG_HAVE_SMI_HANDLER) += mainboard_smi.c
28 SPD_BIN = $(obj)/spd.bin
30 SRC_ROOT = $(src)/mainboard/google/link
32 # Order of names in SPD_SOURCES is important!
33 SPD_SOURCES = elpida_4Gb_1600_x16
34 SPD_SOURCES += samsung_4Gb_1600_1.35v_x16
35 SPD_SOURCES += micron_4Gb_1600_1.35v_x16
37 SPD_DEPS := $(foreach f, $(SPD_SOURCES), $(SRC_ROOT)/$(f).spd.hex)
39 # Include spd rom data
40 $(SPD_BIN): $(SPD_DEPS)
41         for f in $^; do for c in $$(cat $$f); do echo -e -n "\\x$$c"; done; done > $@
43 cbfs-files-y += spd.bin
44 spd.bin-file := $(SPD_BIN)
45 spd.bin-type := 0xab
46 spd.bin-position := 0xfffec000