blob: 4909e3e95f83a076005a3f675789571cc6eb0062 [file] [log] [blame]
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +03001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2011 - 2012 Advanced Micro Devices, 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
17# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18#
19
Bruce Griffithfa0ab8c2014-10-22 03:37:57 -060020subdirs-$(CONFIG_CPU_AMD_PI_00630F01) += 00630F01
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030021subdirs-$(CONFIG_CPU_AMD_PI_00730F01) += 00730F01
22
23romstage-y += s3_resume.c
24ramstage-y += s3_resume.c
25ramstage-$(CONFIG_SPI_FLASH) += spi.c
26
27cpu_incs += $(src)/cpu/amd/pi/cache_as_ram.inc
28
29romstage-y += heapmanager.c
30ramstage-y += heapmanager.c
31ramstage-y += amd_late_init.c
32
33ifeq ($(CONFIG_HAVE_ACPI_RESUME), y)
34
35$(obj)/coreboot_s3nv.rom: $(obj)/config.h
36 echo " S3 NVRAM $(CONFIG_S3_DATA_POS) (S3 storage area)"
37 # force C locale, so cygwin awk doesn't try to interpret the 0xff below as UTF-8 (or worse)
38 printf %d $(CONFIG_S3_DATA_SIZE) | LC_ALL=C awk '{for (i=0; i<$$1; i++) {printf "%c", 255}}' > $@.tmp
39 mv $@.tmp $@
40
41cbfs-files-y += s3nv
42s3nv-file := $(obj)/coreboot_s3nv.rom
43s3nv-position := $(CONFIG_S3_DATA_POS)
44s3nv-type := raw
45
46endif # CONFIG_HAVE_ACPI_RESUME == y