blob: cc0228bf79e9e7c25a828159dabbaacf937085b8 [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#
Stefan Reinauer00636b02012-04-04 00:08:51 +020015
Vladimir Serbinenko144eea02016-02-10 02:36:04 +010016ifeq ($(CONFIG_NORTHBRIDGE_INTEL_SANDYBRIDGE)$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE),y)
Stefan Reinauere1133b72015-04-27 14:04:38 -070017
Kyösti Mälkkicb08e162013-10-15 17:19:41 +030018ramstage-y += ram_calc.c
Patrick Georgi23f38cd2012-11-16 14:50:32 +010019ramstage-y += northbridge.c
20ramstage-y += gma.c
Iru Cai8e7928a2015-10-18 23:40:34 +080021ramstage-$(CONFIG_SANDYBRIDGE_IVYBRIDGE_LVDS) += gma_sandybridge_lvds.c
22ramstage-$(CONFIG_SANDYBRIDGE_IVYBRIDGE_LVDS) += gma_ivybridge_lvds.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020023
Vladimir Serbinenko822bc652014-01-03 15:55:40 +010024ramstage-y += acpi.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020025
Kyösti Mälkkicb08e162013-10-15 17:19:41 +030026romstage-y += ram_calc.c
Vladimir Serbinenko144eea02016-02-10 02:36:04 +010027ifeq ($(CONFIG_USE_NATIVE_RAMINIT),y)
28romstage-y += raminit.c
Patrick Rudolphfd5fa2a2016-11-11 18:22:33 +010029romstage-y += raminit_common.c
Vladimir Serbinenko144eea02016-02-10 02:36:04 +010030romstage-y += ../../../device/dram/ddr3.c
31else
32romstage-y += raminit_mrc.c
Vladimir Serbinenkobd82d182016-02-12 19:23:02 +010033cbfs-files-y += mrc.bin
34mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
35mrc.bin-position := 0xfffa0000
36mrc.bin-type := mrc
Vladimir Serbinenko144eea02016-02-10 02:36:04 +010037endif
Vladimir Serbinenkoffbb3c02016-02-10 01:36:25 +010038romstage-y += romstage.c
Nico Huberbb9469c2015-10-21 11:49:23 +020039romstage-y += iommu.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020040romstage-y += early_init.c
Vadim Bendebury7a3f36a2012-04-18 15:47:32 -070041romstage-y += report_platform.c
Stefan Reinauer6cb3a592015-07-13 09:39:15 +020042romstage-y += ../../../arch/x86/walkcbfs.S
Stefan Reinauer00636b02012-04-04 00:08:51 +020043
Patrick Georgi5a2bd0b2015-07-06 18:18:22 +020044smm-$(CONFIG_HAVE_SMI_HANDLER) += udelay.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020045smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c
46
Kyösti Mälkki591031f2014-02-13 00:33:40 +020047ifneq ($(CONFIG_CHROMEOS),y)
48$(obj)/mrc.cache: $(obj)/config.h
Patrick Georgi483ff822013-06-18 11:34:01 +020049 dd if=/dev/zero count=1 \
50 bs=$(shell printf "%d" $(CONFIG_MRC_CACHE_SIZE) ) | \
51 tr '\000' '\377' > $@
52
Vladimir Serbinenko7d6b0af2014-10-19 03:07:26 +020053cbfs-files-y += mrc.cache
Patrick Georgi483ff822013-06-18 11:34:01 +020054mrc.cache-file := $(obj)/mrc.cache
Alexandru Gagniuc2c482a92015-09-07 01:54:23 -070055mrc.cache-align := 0x10000
Martin Roth72a8e5e2015-03-24 16:02:27 -060056mrc.cache-type := mrc_cache
Kyösti Mälkki591031f2014-02-13 00:33:40 +020057endif
Patrick Georgi483ff822013-06-18 11:34:01 +020058
Stefan Reinauere1133b72015-04-27 14:04:38 -070059endif