blob: de31288cf7b50f6403f15235b772f127932d62d2 [file] [log] [blame]
Stefan Reinauer00636b02012-04-04 00:08:51 +02001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2010 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#
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
Paul Menzela46a7122013-02-23 18:37:27 +010017# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Stefan Reinauer00636b02012-04-04 00:08:51 +020018#
19
Kyösti Mälkkicb08e162013-10-15 17:19:41 +030020ramstage-y += ram_calc.c
Patrick Georgi23f38cd2012-11-16 14:50:32 +010021ramstage-y += northbridge.c
22ramstage-y += gma.c
Vladimir Serbinenko1783a3c2014-02-23 00:10:35 +010023ramstage-$(CONFIG_IVYBRIDGE_LVDS) += gma_ivybridge_lvds.c
Vladimir Serbinenko9ba922f2014-08-24 22:38:07 +020024ramstage-$(CONFIG_SANDYBRIDGE_LVDS) += gma_sandybridge_lvds.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020025
26ramstage-$(CONFIG_GENERATE_ACPI_TABLES) += acpi.c
Stefan Reinauer1244f4b2012-05-10 11:31:40 -070027ramstage-y += mrccache.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020028
Kyösti Mälkkicb08e162013-10-15 17:19:41 +030029romstage-y += ram_calc.c
Vladimir Serbinenko7686a562014-05-18 11:05:56 +020030romstage-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += raminit.c
31romstage-$(CONFIG_NORTHBRIDGE_INTEL_SANDYBRIDGE) += raminit.c
32romstage-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE) += raminit_native.c
33romstage-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE) += ../../../device/dram/ddr3.c
Stefan Reinauer1244f4b2012-05-10 11:31:40 -070034romstage-y += mrccache.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020035romstage-y += early_init.c
Vadim Bendebury7a3f36a2012-04-18 15:47:32 -070036romstage-y += report_platform.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020037romstage-y += ../../../arch/x86/lib/walkcbfs.S
38
Stefan Reinauer16401b82012-04-27 01:05:11 +020039smm-$(CONFIG_HAVE_SMI_HANDLER) += udelay.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020040smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c
41
42# We don't ship that, but booting without it is bound to fail
43cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
Stefan Reinauercafedcf2012-05-01 16:37:18 -070044mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
Stefan Reinauer00636b02012-04-04 00:08:51 +020045mrc.bin-position := 0xfffa0000
Stefan Reinauer00636b02012-04-04 00:08:51 +020046mrc.bin-type := 0xab
Stefan Reinauere5a0a5d2012-09-19 10:51:48 -070047
Kyösti Mälkki591031f2014-02-13 00:33:40 +020048ifneq ($(CONFIG_CHROMEOS),y)
49$(obj)/mrc.cache: $(obj)/config.h
Patrick Georgi483ff822013-06-18 11:34:01 +020050 dd if=/dev/zero count=1 \
51 bs=$(shell printf "%d" $(CONFIG_MRC_CACHE_SIZE) ) | \
52 tr '\000' '\377' > $@
53
Vladimir Serbinenko5e73be22014-01-12 19:25:00 +010054cbfs-files-$(CONFIG_HAVE_MRC_CACHE) += mrc.cache
Patrick Georgi483ff822013-06-18 11:34:01 +020055mrc.cache-file := $(obj)/mrc.cache
Vladimir Serbinenko7686a562014-05-18 11:05:56 +020056mrc-cache-position-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) := 0xfffd0000
57mrc-cache-position-$(CONFIG_NORTHBRIDGE_INTEL_SANDYBRIDGE) := 0xfffd0000
58mrc-cache-position-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE) := 0xfffe0000
59mrc.cache-position := $(mrc-cache-position-y)
Patrick Georgi483ff822013-06-18 11:34:01 +020060mrc.cache-type := 0xac
Kyösti Mälkki591031f2014-02-13 00:33:40 +020061endif
Patrick Georgi483ff822013-06-18 11:34:01 +020062
Stefan Reinauere5a0a5d2012-09-19 10:51:48 -070063$(obj)/northbridge/intel/sandybridge/acpi.ramstage.o : $(obj)/build.h