blob: ba55466026bcf58ac8e571f13eb7bf83d4d34b3a [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
Nico Huber772a1542019-05-10 16:48:14 +020016ifeq ($(CONFIG_NORTHBRIDGE_INTEL_SANDYBRIDGE),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
Patrick Rudolph0b643d22017-07-05 20:07:06 +020020ramstage-y += pcie.c
Patrick Georgi23f38cd2012-11-16 14:50:32 +010021ramstage-y += gma.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020022
Vladimir Serbinenko822bc652014-01-03 15:55:40 +010023ramstage-y += acpi.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020024
Kyösti Mälkkicb08e162013-10-15 17:19:41 +030025romstage-y += ram_calc.c
Patrick Rudolph74203de2017-11-20 11:57:01 +010026
27ramstage-y += common.c
28romstage-y += common.c
29smm-$(CONFIG_HAVE_SMI_HANDLER) += common.c
30
Vladimir Serbinenko144eea02016-02-10 02:36:04 +010031ifeq ($(CONFIG_USE_NATIVE_RAMINIT),y)
Patrick Rudolph6aca7e62019-03-26 18:22:36 +010032romstage-y += early_dmi.c
Vladimir Serbinenko144eea02016-02-10 02:36:04 +010033romstage-y += raminit.c
Patrick Rudolphfd5fa2a2016-11-11 18:22:33 +010034romstage-y += raminit_common.c
Patrick Rudolph305035c2016-11-11 18:38:50 +010035romstage-y += raminit_sandy.c
36romstage-y += raminit_ivy.c
Vladimir Serbinenko144eea02016-02-10 02:36:04 +010037romstage-y += ../../../device/dram/ddr3.c
38else
39romstage-y += raminit_mrc.c
Vladimir Serbinenkobd82d182016-02-12 19:23:02 +010040cbfs-files-y += mrc.bin
41mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
42mrc.bin-position := 0xfffa0000
43mrc.bin-type := mrc
Vladimir Serbinenko144eea02016-02-10 02:36:04 +010044endif
Vladimir Serbinenkoffbb3c02016-02-10 01:36:25 +010045romstage-y += romstage.c
Nico Huberbb9469c2015-10-21 11:49:23 +020046romstage-y += iommu.c
Stefan Reinauer00636b02012-04-04 00:08:51 +020047romstage-y += early_init.c
Stefan Reinauer6cb3a592015-07-13 09:39:15 +020048romstage-y += ../../../arch/x86/walkcbfs.S
Stefan Reinauer00636b02012-04-04 00:08:51 +020049
Stefan Reinauer00636b02012-04-04 00:08:51 +020050smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c
51
Arthur Heymans6fcd7b82018-06-03 12:16:24 +020052postcar-y += ram_calc.c
53
Stefan Reinauere1133b72015-04-27 14:04:38 -070054endif