Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 1 | # |
| 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 Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 15 | |
Vladimir Serbinenko | 144eea0 | 2016-02-10 02:36:04 +0100 | [diff] [blame] | 16 | ifeq ($(CONFIG_NORTHBRIDGE_INTEL_SANDYBRIDGE)$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE),y) |
Stefan Reinauer | e1133b7 | 2015-04-27 14:04:38 -0700 | [diff] [blame] | 17 | |
Kyösti Mälkki | cb08e16 | 2013-10-15 17:19:41 +0300 | [diff] [blame] | 18 | ramstage-y += ram_calc.c |
Patrick Georgi | 23f38cd | 2012-11-16 14:50:32 +0100 | [diff] [blame] | 19 | ramstage-y += northbridge.c |
| 20 | ramstage-y += gma.c |
Iru Cai | 8e7928a | 2015-10-18 23:40:34 +0800 | [diff] [blame] | 21 | ramstage-$(CONFIG_SANDYBRIDGE_IVYBRIDGE_LVDS) += gma_sandybridge_lvds.c |
| 22 | ramstage-$(CONFIG_SANDYBRIDGE_IVYBRIDGE_LVDS) += gma_ivybridge_lvds.c |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 23 | |
Vladimir Serbinenko | 822bc65 | 2014-01-03 15:55:40 +0100 | [diff] [blame] | 24 | ramstage-y += acpi.c |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 25 | |
Kyösti Mälkki | cb08e16 | 2013-10-15 17:19:41 +0300 | [diff] [blame] | 26 | romstage-y += ram_calc.c |
Vladimir Serbinenko | 144eea0 | 2016-02-10 02:36:04 +0100 | [diff] [blame] | 27 | ifeq ($(CONFIG_USE_NATIVE_RAMINIT),y) |
| 28 | romstage-y += raminit.c |
| 29 | romstage-y += ../../../device/dram/ddr3.c |
| 30 | else |
| 31 | romstage-y += raminit_mrc.c |
Vladimir Serbinenko | bd82d18 | 2016-02-12 19:23:02 +0100 | [diff] [blame] | 32 | cbfs-files-y += mrc.bin |
| 33 | mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE)) |
| 34 | mrc.bin-position := 0xfffa0000 |
| 35 | mrc.bin-type := mrc |
Vladimir Serbinenko | 144eea0 | 2016-02-10 02:36:04 +0100 | [diff] [blame] | 36 | endif |
Vladimir Serbinenko | ffbb3c0 | 2016-02-10 01:36:25 +0100 | [diff] [blame] | 37 | romstage-y += romstage.c |
Nico Huber | bb9469c | 2015-10-21 11:49:23 +0200 | [diff] [blame] | 38 | romstage-y += iommu.c |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 39 | romstage-y += early_init.c |
Vadim Bendebury | 7a3f36a | 2012-04-18 15:47:32 -0700 | [diff] [blame] | 40 | romstage-y += report_platform.c |
Stefan Reinauer | 6cb3a59 | 2015-07-13 09:39:15 +0200 | [diff] [blame] | 41 | romstage-y += ../../../arch/x86/walkcbfs.S |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 42 | |
Patrick Georgi | 5a2bd0b | 2015-07-06 18:18:22 +0200 | [diff] [blame] | 43 | smm-$(CONFIG_HAVE_SMI_HANDLER) += udelay.c |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 44 | smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c |
| 45 | |
Kyösti Mälkki | 591031f | 2014-02-13 00:33:40 +0200 | [diff] [blame] | 46 | ifneq ($(CONFIG_CHROMEOS),y) |
| 47 | $(obj)/mrc.cache: $(obj)/config.h |
Patrick Georgi | 483ff82 | 2013-06-18 11:34:01 +0200 | [diff] [blame] | 48 | dd if=/dev/zero count=1 \ |
| 49 | bs=$(shell printf "%d" $(CONFIG_MRC_CACHE_SIZE) ) | \ |
| 50 | tr '\000' '\377' > $@ |
| 51 | |
Vladimir Serbinenko | 7d6b0af | 2014-10-19 03:07:26 +0200 | [diff] [blame] | 52 | cbfs-files-y += mrc.cache |
Patrick Georgi | 483ff82 | 2013-06-18 11:34:01 +0200 | [diff] [blame] | 53 | mrc.cache-file := $(obj)/mrc.cache |
Alexandru Gagniuc | 2c482a9 | 2015-09-07 01:54:23 -0700 | [diff] [blame] | 54 | mrc.cache-align := 0x10000 |
Martin Roth | 72a8e5e | 2015-03-24 16:02:27 -0600 | [diff] [blame] | 55 | mrc.cache-type := mrc_cache |
Kyösti Mälkki | 591031f | 2014-02-13 00:33:40 +0200 | [diff] [blame] | 56 | endif |
Patrick Georgi | 483ff82 | 2013-06-18 11:34:01 +0200 | [diff] [blame] | 57 | |
Stefan Reinauer | e1133b7 | 2015-04-27 14:04:38 -0700 | [diff] [blame] | 58 | endif |