blob: edc77af094ce04787194442b9a7cf3d542105b64 [file] [log] [blame]
Stefan Reinaueraae53ab2015-04-27 14:03:57 -07001ifeq ($(CONFIG_SOC_INTEL_BAYTRAIL),y)
2
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -05003subdirs-y += romstage
4subdirs-y += ../../../cpu/x86/lapic
5subdirs-y += ../../../cpu/x86/mtrr
Aaron Durbin7837be62013-10-21 22:32:00 -05006subdirs-y += ../../../cpu/x86/smm
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -05007subdirs-y += ../../../cpu/x86/tsc
Aaron Durbin452d31a2013-09-24 16:47:49 -05008subdirs-y += ../../../cpu/intel/microcode
Duncan Laurie05a33932013-11-05 12:59:50 -08009subdirs-y += ../../../cpu/intel/turbo
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050010
11ramstage-y += memmap.c
12romstage-y += memmap.c
13ramstage-y += tsc_freq.c
14romstage-y += tsc_freq.c
Aaron Durbin7837be62013-10-21 22:32:00 -050015smm-y += tsc_freq.c
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050016ramstage-y += spi.c
Aaron Durbin7837be62013-10-21 22:32:00 -050017smm-y += spi.c
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050018ramstage-y += chip.c
Duncan Lauriee3f75f82013-10-28 15:49:34 -070019ramstage-y += gfx.c
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050020ramstage-y += iosf.c
21romstage-y += iosf.c
Marc Jones9afc5c02014-09-24 10:53:48 -060022smm-y += iosf.c
Aaron Durbin191570d2013-09-24 12:41:08 -050023ramstage-y += northcluster.c
Aaron Durbin452d31a2013-09-24 16:47:49 -050024ramstage-y += ramstage.c
Shawn Nematbakhshebe3b3c2013-09-26 16:44:14 -070025ramstage-y += gpio.c
Aaron Durbin6ecdb682013-10-10 20:54:57 -050026romstage-y += reset.c
27ramstage-y += reset.c
Aaron Durbin302cbd62013-10-21 12:36:17 -050028ramstage-y += cpu.c
Aaron Durbin7837be62013-10-21 22:32:00 -050029ramstage-y += pmutil.c
30smm-y += pmutil.c
31smm-y += smihandler.c
32ramstage-y += smm.c
Duncan Laurie3c9f1742013-11-01 13:34:00 -070033ramstage-y += ehci.c
Duncan Laurief81a91a2013-11-01 13:32:53 -070034ramstage-y += xhci.c
Aaron Durbine18d68f2013-10-24 00:05:31 -050035ramstage-y += southcluster.c
Aaron Durbinae5d83e2013-10-24 10:21:43 -050036ramstage-$(CONFIG_HAVE_REFCODE_BLOB) += refcode.c
Shawn Nematbakhsh1dbd0e22013-10-28 16:15:02 -070037ramstage-y += sata.c
Aaron Durbin61cd57b2013-10-30 14:36:11 -050038ramstage-y += acpi.c
Aaron Durbin97651c52013-11-01 14:36:03 -050039ramstage-y += lpe.c
Aaron Durbinc626b742013-11-12 16:40:33 -060040ramstage-y += scc.c
Aaron Durbin15921692013-11-12 16:44:18 -060041ramstage-y += emmc.c
Aaron Durbindc866cf2013-11-12 20:21:53 -060042ramstage-y += lpss.c
Aaron Durbinae31f7d2013-11-22 14:16:49 -060043ramstage-y += pcie.c
Aaron Durbin8b120a82013-12-10 08:35:51 -080044ramstage-y += sd.c
Duncan Laurie9fd7c0f2014-01-16 09:47:39 -080045ramstage-y += dptf.c
Aaron Durbincffe7952013-12-11 17:15:45 -080046ramstage-y += perf_power.c
Aaron Durbince727e12013-12-12 10:27:11 -080047ramstage-y += stage_cache.c
48romstage-y += stage_cache.c
Aaron Durbin8f31ecf2014-01-09 10:41:30 -060049ramstage-$(CONFIG_ELOG) += elog.c
Shawn Nematbakhsh51d787a2014-01-16 17:52:21 -080050ramstage-y += hda.c
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050051
52# Remove as ramstage gets fleshed out
53ramstage-y += placeholders.c
54
Alexandru Gagniuc1d857002015-09-09 22:38:06 -070055cpu_microcode_bins += 3rdparty/blobs/soc/intel/baytrail/microcode.bin
56
Julius Werner18ea2d32014-10-07 16:42:17 -070057CPPFLAGS_common += -Isrc/soc/intel/baytrail/include
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050058
Aaron Durbin11318892014-04-02 20:46:13 -050059# If an MRC file is an ELF file determine the entry address and first loadable
60# section offset in the file. Subtract the offset from the entry address to
61# determine the final location.
Patrick Georgi0a1699e2014-11-12 19:15:34 +010062mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
63mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
Aaron Durbin11318892014-04-02 20:46:13 -050064
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050065# Add memory reference code blob.
66cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
67mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
Aaron Durbin11318892014-04-02 20:46:13 -050068mrc.bin-position := $(if $(findstring elf,$(CONFIG_MRC_FILE)),$(shell printf "0x%x" $$(( $(mrcelfentry) - $(mrcelfoffset) )) ),$(CONFIG_MRC_BIN_ADDRESS))
Martin Roth72a8e5e2015-03-24 16:02:27 -060069mrc.bin-type := mrc
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050070
Stefan Reinaueraae53ab2015-04-27 14:03:57 -070071endif