Martin Roth | 9231f0b | 2022-10-28 22:39:23 -0600 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 2 | ifeq ($(CONFIG_SOC_INTEL_BAYTRAIL),y) |
| 3 | |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 4 | subdirs-y += romstage |
Aaron Durbin | 452d31a | 2013-09-24 16:47:49 -0500 | [diff] [blame] | 5 | subdirs-y += ../../../cpu/intel/microcode |
Duncan Laurie | 05a3393 | 2013-11-05 12:59:50 -0800 | [diff] [blame] | 6 | subdirs-y += ../../../cpu/intel/turbo |
Matt DeVillier | e5a1a4c | 2017-01-19 21:13:02 -0600 | [diff] [blame] | 7 | subdirs-y += ../../../cpu/intel/common |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 8 | |
Arthur Heymans | 179da7f | 2019-11-15 12:51:51 +0100 | [diff] [blame] | 9 | all-y += tsc_freq.c |
| 10 | |
| 11 | bootblock-y += ../../../cpu/intel/car/non-evict/cache_as_ram.S |
| 12 | bootblock-y += ../../../cpu/intel/car/bootblock.c |
| 13 | bootblock-y += ../../../cpu/x86/early_reset.S |
| 14 | bootblock-y += bootblock/bootblock.c |
| 15 | |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 16 | romstage-y += iosf.c |
Angel Pons | ef3caf0 | 2019-07-21 02:50:51 +0200 | [diff] [blame] | 17 | romstage-y += memmap.c |
Aaron Durbin | 64b4bdd | 2017-09-15 14:24:03 -0600 | [diff] [blame] | 18 | romstage-y += pmutil.c |
Angel Pons | ef3caf0 | 2019-07-21 02:50:51 +0200 | [diff] [blame] | 19 | |
| 20 | postcar-y += iosf.c |
| 21 | postcar-y += memmap.c |
Angel Pons | ef3caf0 | 2019-07-21 02:50:51 +0200 | [diff] [blame] | 22 | |
| 23 | ramstage-y += acpi.c |
| 24 | ramstage-y += chip.c |
| 25 | ramstage-y += cpu.c |
| 26 | ramstage-y += dptf.c |
| 27 | ramstage-y += ehci.c |
| 28 | ramstage-y += emmc.c |
Angel Pons | 91ca2dd | 2020-07-12 14:24:48 +0200 | [diff] [blame] | 29 | ramstage-y += fadt.c |
Angel Pons | ef3caf0 | 2019-07-21 02:50:51 +0200 | [diff] [blame] | 30 | ramstage-y += gfx.c |
| 31 | ramstage-y += gpio.c |
| 32 | ramstage-y += hda.c |
| 33 | ramstage-y += iosf.c |
| 34 | ramstage-y += lpe.c |
| 35 | ramstage-y += lpss.c |
| 36 | ramstage-y += memmap.c |
| 37 | ramstage-y += northcluster.c |
| 38 | ramstage-y += pcie.c |
| 39 | ramstage-y += perf_power.c |
Aaron Durbin | 7837be6 | 2013-10-21 22:32:00 -0500 | [diff] [blame] | 40 | ramstage-y += pmutil.c |
Angel Pons | ef3caf0 | 2019-07-21 02:50:51 +0200 | [diff] [blame] | 41 | ramstage-y += ramstage.c |
| 42 | ramstage-y += sata.c |
| 43 | ramstage-y += scc.c |
| 44 | ramstage-y += sd.c |
| 45 | ramstage-y += smm.c |
| 46 | ramstage-y += southcluster.c |
Angel Pons | ef3caf0 | 2019-07-21 02:50:51 +0200 | [diff] [blame] | 47 | ramstage-y += xhci.c |
| 48 | ramstage-$(CONFIG_ELOG) += elog.c |
Angel Pons | 4cedb8c | 2021-05-17 18:46:41 +0200 | [diff] [blame] | 49 | ramstage-$(CONFIG_VGA_ROM_RUN) += int15.c |
Mate Kukri | e231949 | 2020-07-04 11:20:07 +0200 | [diff] [blame] | 50 | |
| 51 | ifeq ($(CONFIG_HAVE_REFCODE_BLOB),y) |
| 52 | ramstage-y += refcode.c |
| 53 | else |
| 54 | ramstage-y += modphy_table.c refcode_native.c |
| 55 | endif |
Angel Pons | ef3caf0 | 2019-07-21 02:50:51 +0200 | [diff] [blame] | 56 | |
| 57 | smm-y += iosf.c |
Aaron Durbin | 7837be6 | 2013-10-21 22:32:00 -0500 | [diff] [blame] | 58 | smm-y += pmutil.c |
| 59 | smm-y += smihandler.c |
Angel Pons | ef3caf0 | 2019-07-21 02:50:51 +0200 | [diff] [blame] | 60 | smm-y += tsc_freq.c |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 61 | |
| 62 | # Remove as ramstage gets fleshed out |
| 63 | ramstage-y += placeholders.c |
| 64 | |
Arthur Heymans | d5d20d0 | 2018-11-29 14:16:49 +0100 | [diff] [blame] | 65 | postcar-y += ../../../cpu/intel/car/non-evict/exit_car.S |
| 66 | |
Mate Kukri | f2c13bd | 2020-07-07 17:23:18 +0200 | [diff] [blame] | 67 | cpu_microcode_bins += 3rdparty/blobs/soc/intel/baytrail/microcode.bin \ |
| 68 | 3rdparty/intel-microcode/intel-ucode/06-37-09 |
Alexandru Gagniuc | 1d85700 | 2015-09-09 22:38:06 -0700 | [diff] [blame] | 69 | |
Julius Werner | 18ea2d3 | 2014-10-07 16:42:17 -0700 | [diff] [blame] | 70 | CPPFLAGS_common += -Isrc/soc/intel/baytrail/include |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 71 | |
Angel Pons | 3606b93 | 2021-09-27 13:17:49 +0200 | [diff] [blame] | 72 | ifeq ($(CONFIG_HAVE_MRC),y) |
| 73 | |
| 74 | # Bay Trail MRC is an ELF file. Determine the entry address and first loadable |
Aaron Durbin | 1131889 | 2014-04-02 20:46:13 -0500 | [diff] [blame] | 75 | # section offset in the file. Subtract the offset from the entry address to |
| 76 | # determine the final location. |
Patrick Georgi | 0a1699e | 2014-11-12 19:15:34 +0100 | [diff] [blame] | 77 | mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' ) |
| 78 | mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }') |
Aaron Durbin | 1131889 | 2014-04-02 20:46:13 -0500 | [diff] [blame] | 79 | |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 80 | # Add memory reference code blob. |
Angel Pons | 3606b93 | 2021-09-27 13:17:49 +0200 | [diff] [blame] | 81 | cbfs-files-y += mrc.bin |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 82 | mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE)) |
Angel Pons | 3606b93 | 2021-09-27 13:17:49 +0200 | [diff] [blame] | 83 | mrc.bin-position := $(shell printf "0x%x" $$(( $(mrcelfentry) - $(mrcelfoffset) )) ) |
Martin Roth | 72a8e5e | 2015-03-24 16:02:27 -0600 | [diff] [blame] | 84 | mrc.bin-type := mrc |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 85 | |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 86 | endif |
Angel Pons | 3606b93 | 2021-09-27 13:17:49 +0200 | [diff] [blame] | 87 | endif |