blob: 867ce43f16e0a901f1c21cdca32569c427123473 [file] [log] [blame]
Lee Leahy77ff0b12015-05-05 15:07:29 -07001ifeq ($(CONFIG_SOC_INTEL_BRASWELL),y)
2
Lee Leahy77ff0b12015-05-05 15:07:29 -07003subdirs-y += romstage
4subdirs-y += ../../../cpu/x86/lapic
5subdirs-y += ../../../cpu/x86/mtrr
6subdirs-y += ../../../cpu/x86/smm
7subdirs-y += ../../../cpu/x86/tsc
8subdirs-y += ../../../cpu/intel/microcode
9subdirs-y += ../../../cpu/intel/turbo
10
Lee Leahy32471722015-04-20 15:20:28 -070011romstage-y += gpio_support.c
Lee Leahy77ff0b12015-05-05 15:07:29 -070012romstage-y += iosf.c
Lee Leahyacb9c0b2015-07-02 11:55:18 -070013romstage-y += lpc_init.c
Lee Leahy32471722015-04-20 15:20:28 -070014romstage-y += memmap.c
15romstage-y += tsc_freq.c
16
Lee Leahy77ff0b12015-05-05 15:07:29 -070017ramstage-y += acpi.c
Lee Leahy32471722015-04-20 15:20:28 -070018ramstage-y += chip.c
19ramstage-y += cpu.c
Lee Leahy77ff0b12015-05-05 15:07:29 -070020ramstage-$(CONFIG_ELOG) += elog.c
Lee Leahy32471722015-04-20 15:20:28 -070021ramstage-y += emmc.c
22ramstage-y += gpio.c
23ifeq ($(CONFIG_GOP_SUPPORT),n)
24ramstage-y += gfx.c
25endif
Subrata Baniked7275f2015-08-22 10:36:41 +053026ramstage-y += gpio_support.c
Lee Leahy77ff0b12015-05-05 15:07:29 -070027ramstage-y += hda.c
Lee Leahy32471722015-04-20 15:20:28 -070028ramstage-y += iosf.c
29ramstage-y += lpe.c
30ramstage-y += lpss.c
31ramstage-y += memmap.c
32ramstage-y += northcluster.c
33ramstage-y += pcie.c
34ramstage-y += pmutil.c
35ramstage-y += ramstage.c
36ramstage-y += sata.c
37ramstage-y += scc.c
38ramstage-y += sd.c
39ramstage-y += smm.c
40ramstage-y += southcluster.c
41ramstage-y += spi.c
42ramstage-$(CONFIG_ALT_CBFS_LOAD_PAYLOAD) += spi_loading.c
43ramstage-y += tsc_freq.c
shkimcc728f02015-09-22 17:53:58 +090044ramstage-y += xhci.c
Lee Leahy77ff0b12015-05-05 15:07:29 -070045
46# Remove as ramstage gets fleshed out
47ramstage-y += placeholders.c
Lee Leahyacb9c0b2015-07-02 11:55:18 -070048smm-y += lpc_init.c
Lee Leahy32471722015-04-20 15:20:28 -070049smm-y += pmutil.c
50smm-y += smihandler.c
51smm-y += spi.c
52smm-y += tsc_freq.c
53
Alexandru Gagniuc1d857002015-09-09 22:38:06 -070054# cpu_microcode_bins += ???
55
Lee Leahy32471722015-04-20 15:20:28 -070056CPPFLAGS_common += -I$(src)/soc/intel/braswell/
57CPPFLAGS_common += -I$(src)/soc/intel/braswell/include
Stefan Reinauer1d057312015-11-18 15:32:27 -080058CPPFLAGS_common += -I$(src)/vendorcode/intel/fsp/fsp1_1/braswell
Lee Leahy32471722015-04-20 15:20:28 -070059
60CPPFLAGS_common += -I3rdparty/blobs/mainboard/$(CONFIG_MAINBOARD_DIR)
61
Martin Rothf812c442016-01-04 12:43:22 -070062ifneq ($(CONFIG_GOP_SUPPORT),y)
63ifneq ($(CONFIG_VGA_BIOS_FILE),)
64#we will assume that the vbios names will remain as they are now: vgabios.bin and vgabios_c0.bin
65BRASWELL_C0_VBIOS= $(subst .bin,_c0.bin,$(call strip_quotes,$(CONFIG_VGA_BIOS_FILE)))
66
67cbfs-files-$(CONFIG_VGA_BIOS) += pci8086,22b1.rom
68pci8086,22b1.rom-file := $(BRASWELL_C0_VBIOS)
69pci8086,22b1.rom-type := optionrom
70
71endif # ifneq ($(CONFIG_GOP_SUPPORT),y)
72endif # ifneq ($(CONFIG_VGA_BIOS_FILE),)
73
74endif # ifeq ($(CONFIG_SOC_INTEL_BRASWELL),y)