blob: 2c613e0168489dddccf0fe12897af7d5c7e52922 [file] [log] [blame]
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -07001ifeq ($(CONFIG_SOC_INTEL_ELKHARTLAKE),y)
2
3subdirs-y += romstage
4subdirs-y += ../../../cpu/intel/microcode
5subdirs-y += ../../../cpu/intel/turbo
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -07006
7# all (bootblock, verstage, romstage, postcar, ramstage)
8all-y += gspi.c
9all-y += i2c.c
10all-y += pmutil.c
11all-y += spi.c
12all-y += uart.c
13
14bootblock-y += bootblock/bootblock.c
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070015bootblock-y += bootblock/pch.c
16bootblock-y += bootblock/report_platform.c
17bootblock-y += espi.c
18bootblock-y += gpio.c
19bootblock-y += p2sb.c
20
21romstage-y += espi.c
22romstage-y += gpio.c
23romstage-y += meminit.c
24romstage-y += reset.c
25
26ramstage-y += acpi.c
27ramstage-y += chip.c
28ramstage-y += cpu.c
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070029ramstage-y += espi.c
30ramstage-y += finalize.c
31ramstage-y += fsp_params.c
32ramstage-y += gpio.c
33ramstage-y += lockdown.c
34ramstage-y += p2sb.c
35ramstage-y += pmc.c
36ramstage-y += reset.c
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070037ramstage-y += systemagent.c
38ramstage-y += sd.c
Mario Scheithauereda66c32022-04-26 13:50:52 +020039ramstage-$(CONFIG_EHL_TSN_DRIVER) += tsn_gbe.c
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070040ramstage-y += me.c
41
42smm-y += gpio.c
43smm-y += p2sb.c
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070044smm-y += pmutil.c
45smm-y += smihandler.c
46smm-y += uart.c
47
48verstage-y += gpio.c
49
50CPPFLAGS_common += -I$(src)/soc/intel/elkhartlake
51CPPFLAGS_common += -I$(src)/soc/intel/elkhartlake/include
52
Arthur Heymansed8081c2021-12-11 14:23:31 +010053# B0 stepping
54cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-96-01
Lean Sheng Tan5cd75792021-06-09 13:58:12 -070055cbfs-files-$(CONFIG_ADD_PSE_IMAGE_TO_CBFS) += pse.bin
56pse.bin-file := $(CONFIG_PSE_IMAGE_FILE)
57pse.bin-type := raw
58pse.bin-compression := lzma
59
60# Add a build time check if the PSE file size fits
61ifeq ($(CONFIG_ADD_PSE_IMAGE_TO_CBFS),y)
62ifeq ($(call int-gt,\
63 $(call file-size,$(CONFIG_PSE_IMAGE_FILE))\
64 $(shell printf "%d" $(call int-shift-left, $(CONFIG_PSE_FW_FILE_SIZE_KIB) 10))), 1)
65$(error PSE binary larger than CONFIG_PSE_FW_FILE_SIZE_KIB.)
66endif
67endif # CONFIG_ADD_PSE_IMAGE_TO_CBFS
Arthur Heymansed8081c2021-12-11 14:23:31 +010068
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070069endif