blob: c2b015b95522adf468ebee60897e05783263f6c7 [file] [log] [blame]
Stefan Reinauere1133b72015-04-27 14:04:38 -07001ifeq ($(CONFIG_NORTHBRIDGE_AMD_AMDFAM10),y)
2
Patrick Georgi23f38cd2012-11-16 14:50:32 +01003ramstage-y += northbridge.c
4ramstage-y += misc_control.c
Timothy Pearson730a0432015-10-16 13:51:51 -05005ramstage-y += link_control.c
6ramstage-y += nb_control.c
Timothy Pearsonead87512015-02-20 12:47:52 -06007romstage-y += amdfam10_util.c
8ramstage-y += amdfam10_util.c
Patrick Georgi88f55b22009-09-25 18:43:02 +00009
Kyösti Mälkki991a71d2015-02-22 00:12:43 +020010ramstage-y += ht_config.c
11
Vladimir Serbinenko822bc652014-01-03 15:55:40 +010012ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
Patrick Georgi88f55b22009-09-25 18:43:02 +000013
Patrick Georgi8463dd92010-09-30 16:55:02 +000014ramstage-y += get_pci1234.c
Myles Watson48beb822010-05-10 19:45:45 +000015
16# Enable this if you want to check the values of the PCI routing registers.
17# Call show_all_routes() anywhere amdfam10.h is included.
Patrick Georgi8463dd92010-09-30 16:55:02 +000018#ramstage-y += util.c
Stefan Reinauere1133b72015-04-27 14:04:38 -070019
Timothy Pearson4ea0cc02015-09-05 18:39:34 -050020# Reserve 2x CONFIG_S3_DATA_SIZE to allow for random file placement
21# (not respecting erase sector boundaries) within CBFS
22$(obj)/coreboot_s3nv.rom: $(obj)/config.h
23 echo " S3 NVRAM $(CONFIG_S3_DATA_POS) (S3 storage area)"
24 # force C locale, so cygwin awk doesn't try to interpret the 0xff below as UTF-8 (or worse)
25 printf %d $(CONFIG_S3_DATA_SIZE) | LC_ALL=C awk '{for (i=0; i<$$1*2; i++) {printf "%c", 255}}' > $@.tmp
26 mv $@.tmp $@
27
28cbfs-files-$(CONFIG_HAVE_ACPI_RESUME) += s3nv
29s3nv-file := $(obj)/coreboot_s3nv.rom
30s3nv-align := $(CONFIG_S3_DATA_SIZE)
31s3nv-type := raw
32
Timothy Pearson59d0e042015-09-05 18:40:31 -050033ramstage-$(CONFIG_DIMM_DDR3) += ../amdmct/mct_ddr3/s3utils.c
34
Stefan Reinauere1133b72015-04-27 14:04:38 -070035endif