2015-04-27 23:03:57 +02:00
|
|
|
ifeq ($(CONFIG_SOC_INTEL_BAYTRAIL),y)
|
|
|
|
|
2013-09-07 07:41:48 +02:00
|
|
|
subdirs-y += romstage
|
|
|
|
subdirs-y += ../../../cpu/x86/lapic
|
|
|
|
subdirs-y += ../../../cpu/x86/mtrr
|
2013-10-22 05:32:00 +02:00
|
|
|
subdirs-y += ../../../cpu/x86/smm
|
2013-09-07 07:41:48 +02:00
|
|
|
subdirs-y += ../../../cpu/x86/tsc
|
2013-09-24 23:47:49 +02:00
|
|
|
subdirs-y += ../../../cpu/intel/microcode
|
2013-11-05 21:59:50 +01:00
|
|
|
subdirs-y += ../../../cpu/intel/turbo
|
2017-01-20 04:13:02 +01:00
|
|
|
subdirs-y += ../../../cpu/intel/common
|
2013-09-07 07:41:48 +02:00
|
|
|
|
2019-11-15 12:51:51 +01:00
|
|
|
all-y += tsc_freq.c
|
|
|
|
|
|
|
|
bootblock-y += ../../../cpu/intel/car/non-evict/cache_as_ram.S
|
|
|
|
bootblock-y += ../../../cpu/intel/car/bootblock.c
|
|
|
|
bootblock-y += ../../../cpu/x86/early_reset.S
|
|
|
|
bootblock-y += bootblock/bootblock.c
|
|
|
|
|
2019-07-21 02:50:51 +02:00
|
|
|
romstage-y += iosf.c
|
2013-09-07 07:41:48 +02:00
|
|
|
romstage-y += memmap.c
|
2019-07-21 02:50:51 +02:00
|
|
|
romstage-y += pmutil.c
|
|
|
|
|
|
|
|
postcar-y += iosf.c
|
|
|
|
postcar-y += memmap.c
|
|
|
|
|
|
|
|
ramstage-y += acpi.c
|
2013-09-07 07:41:48 +02:00
|
|
|
ramstage-y += chip.c
|
2019-07-21 02:50:51 +02:00
|
|
|
ramstage-y += cpu.c
|
|
|
|
ramstage-y += dptf.c
|
|
|
|
ramstage-y += ehci.c
|
|
|
|
ramstage-y += emmc.c
|
2020-07-12 14:24:48 +02:00
|
|
|
ramstage-y += fadt.c
|
2013-10-28 23:49:34 +01:00
|
|
|
ramstage-y += gfx.c
|
2019-07-21 02:50:51 +02:00
|
|
|
ramstage-y += gpio.c
|
|
|
|
ramstage-y += hda.c
|
2013-09-07 07:41:48 +02:00
|
|
|
ramstage-y += iosf.c
|
2019-07-21 02:50:51 +02:00
|
|
|
ramstage-y += lpe.c
|
|
|
|
ramstage-y += lpss.c
|
|
|
|
ramstage-y += memmap.c
|
2013-09-24 19:41:08 +02:00
|
|
|
ramstage-y += northcluster.c
|
2019-07-21 02:50:51 +02:00
|
|
|
ramstage-y += pcie.c
|
|
|
|
ramstage-y += perf_power.c
|
2013-10-22 05:32:00 +02:00
|
|
|
ramstage-y += pmutil.c
|
2019-07-21 02:50:51 +02:00
|
|
|
ramstage-y += ramstage.c
|
2013-10-29 00:15:02 +01:00
|
|
|
ramstage-y += sata.c
|
2013-11-12 23:40:33 +01:00
|
|
|
ramstage-y += scc.c
|
2013-12-10 17:35:51 +01:00
|
|
|
ramstage-y += sd.c
|
2019-07-21 02:50:51 +02:00
|
|
|
ramstage-y += smm.c
|
|
|
|
ramstage-y += southcluster.c
|
|
|
|
ramstage-y += xhci.c
|
2014-01-09 17:41:30 +01:00
|
|
|
ramstage-$(CONFIG_ELOG) += elog.c
|
2020-07-04 11:20:07 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_HAVE_REFCODE_BLOB),y)
|
|
|
|
ramstage-y += refcode.c
|
|
|
|
else
|
|
|
|
ramstage-y += modphy_table.c refcode_native.c
|
|
|
|
endif
|
2019-07-21 02:50:51 +02:00
|
|
|
|
|
|
|
smm-y += iosf.c
|
|
|
|
smm-y += pmutil.c
|
|
|
|
smm-y += smihandler.c
|
|
|
|
smm-y += tsc_freq.c
|
2013-09-07 07:41:48 +02:00
|
|
|
|
|
|
|
# Remove as ramstage gets fleshed out
|
|
|
|
ramstage-y += placeholders.c
|
|
|
|
|
2018-11-29 14:16:49 +01:00
|
|
|
postcar-y += ../../../cpu/intel/car/non-evict/exit_car.S
|
|
|
|
|
2020-07-07 17:23:18 +02:00
|
|
|
cpu_microcode_bins += 3rdparty/blobs/soc/intel/baytrail/microcode.bin \
|
|
|
|
3rdparty/intel-microcode/intel-ucode/06-37-09
|
2015-09-10 07:38:06 +02:00
|
|
|
|
2014-10-08 01:42:17 +02:00
|
|
|
CPPFLAGS_common += -Isrc/soc/intel/baytrail/include
|
2013-09-07 07:41:48 +02:00
|
|
|
|
2014-04-03 03:46:13 +02:00
|
|
|
# If an MRC file is an ELF file determine the entry address and first loadable
|
|
|
|
# section offset in the file. Subtract the offset from the entry address to
|
|
|
|
# determine the final location.
|
2014-11-12 19:15:34 +01:00
|
|
|
mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
|
|
|
|
mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
|
2014-04-03 03:46:13 +02:00
|
|
|
|
2013-09-07 07:41:48 +02:00
|
|
|
# Add memory reference code blob.
|
|
|
|
cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
|
|
|
|
mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
|
2014-04-03 03:46:13 +02:00
|
|
|
mrc.bin-position := $(if $(findstring elf,$(CONFIG_MRC_FILE)),$(shell printf "0x%x" $$(( $(mrcelfentry) - $(mrcelfoffset) )) ),$(CONFIG_MRC_BIN_ADDRESS))
|
2015-03-24 23:02:27 +01:00
|
|
|
mrc.bin-type := mrc
|
2013-09-07 07:41:48 +02:00
|
|
|
|
2015-04-27 23:03:57 +02:00
|
|
|
endif
|