sandy/ivybridge: Native raminit.
[coreboot.git] / src / northbridge / intel / sandybridge / Makefile.inc
blob536656bf44e33f6aa3e8b310cee590cdcfff52e1
2 # This file is part of the coreboot project.
4 # Copyright (C) 2010 Google Inc.
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.
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 += ram_calc.c
21 ramstage-y += northbridge.c
22 ramstage-y += gma.c
24 ramstage-$(CONFIG_GENERATE_ACPI_TABLES) += acpi.c
25 ramstage-y += mrccache.c
27 romstage-y += ram_calc.c
28 romstage-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += raminit.c
29 romstage-$(CONFIG_NORTHBRIDGE_INTEL_SANDYBRIDGE) += raminit.c
30 romstage-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE) += raminit_native.c
31 romstage-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE) += ../../../device/dram/ddr3.c
32 romstage-y += mrccache.c
33 romstage-y += early_init.c
34 romstage-y += report_platform.c
35 romstage-y += ../../../arch/x86/lib/walkcbfs.S
37 smm-$(CONFIG_HAVE_SMI_HANDLER) += udelay.c
38 smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c
40 # We don't ship that, but booting without it is bound to fail
41 cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
42 mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
43 mrc.bin-position := 0xfffa0000
44 mrc.bin-type := 0xab
46 ifneq ($(CONFIG_CHROMEOS),y)
47 $(obj)/mrc.cache: $(obj)/config.h
48         dd if=/dev/zero count=1 \
49         bs=$(shell printf "%d" $(CONFIG_MRC_CACHE_SIZE) ) | \
50         tr '\000' '\377' > $@
52 cbfs-files-$(CONFIG_HAVE_MRC_CACHE) += mrc.cache
53 mrc.cache-file := $(obj)/mrc.cache
54 mrc-cache-position-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) := 0xfffd0000
55 mrc-cache-position-$(CONFIG_NORTHBRIDGE_INTEL_SANDYBRIDGE) := 0xfffd0000
56 mrc-cache-position-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE) := 0xfffe0000
57 mrc.cache-position := $(mrc-cache-position-y)
58 mrc.cache-type := 0xac
59 endif
61 $(obj)/northbridge/intel/sandybridge/acpi.ramstage.o : $(obj)/build.h