2015-10-06 19:33:49 +02:00
|
|
|
ifeq ($(CONFIG_SOC_INTEL_APOLLOLAKE),y)
|
|
|
|
|
|
|
|
subdirs-y += ../../../cpu/intel/microcode
|
|
|
|
subdirs-y += ../../../cpu/intel/turbo
|
|
|
|
subdirs-y += ../../../cpu/x86/lapic
|
|
|
|
subdirs-y += ../../../cpu/x86/mtrr
|
|
|
|
subdirs-y += ../../../cpu/x86/smm
|
|
|
|
subdirs-y += ../../../cpu/x86/tsc
|
2016-03-05 06:33:04 +01:00
|
|
|
subdirs-y += ../../../cpu/x86/cache
|
2015-10-06 19:33:49 +02:00
|
|
|
|
2016-02-11 02:47:03 +01:00
|
|
|
bootblock-y += bootblock/bootblock.c
|
2016-03-31 18:38:13 +02:00
|
|
|
bootblock-y += car.c
|
2016-07-15 02:16:35 +02:00
|
|
|
bootblock-y += heci.c
|
2017-04-26 17:36:35 +02:00
|
|
|
bootblock-y += i2c.c
|
2017-08-05 01:26:09 +02:00
|
|
|
bootblock-y += lpc.c
|
2016-02-13 00:12:43 +01:00
|
|
|
bootblock-y += mmap_boot.c
|
2016-06-15 07:20:28 +02:00
|
|
|
bootblock-y += pmutil.c
|
2016-06-16 02:13:20 +02:00
|
|
|
bootblock-y += spi.c
|
2016-02-25 01:49:07 +01:00
|
|
|
bootblock-$(CONFIG_SOC_UART_DEBUG) += uart_early.c
|
2017-03-03 13:53:59 +01:00
|
|
|
bootblock-$(CONFIG_FSP_CAR) += bootblock/cache_as_ram_fsp.S
|
2016-10-18 22:57:54 +02:00
|
|
|
|
2016-03-31 18:38:13 +02:00
|
|
|
romstage-y += car.c
|
2016-02-26 02:42:25 +01:00
|
|
|
romstage-$(CONFIG_PLATFORM_USES_FSP2_0) += romstage.c
|
2016-07-15 02:16:35 +02:00
|
|
|
romstage-y += heci.c
|
2017-04-26 17:36:35 +02:00
|
|
|
romstage-y += i2c.c
|
2016-02-25 01:49:07 +01:00
|
|
|
romstage-$(CONFIG_SOC_UART_DEBUG) += uart_early.c
|
2016-03-03 00:09:27 +01:00
|
|
|
romstage-y += memmap.c
|
2016-05-12 19:43:37 +02:00
|
|
|
romstage-y += meminit.c
|
2017-07-21 00:11:19 +02:00
|
|
|
ifeq ($(CONFIG_SOC_INTEL_GLK),y)
|
|
|
|
romstage-y += meminit_util_glk.c
|
|
|
|
else
|
|
|
|
romstage-y += meminit_util_apl.c
|
|
|
|
endif
|
2016-02-13 00:12:43 +01:00
|
|
|
romstage-y += mmap_boot.c
|
2016-02-05 05:13:34 +01:00
|
|
|
romstage-y += pmutil.c
|
2016-06-18 00:30:13 +02:00
|
|
|
romstage-y += reset.c
|
2016-06-18 00:50:24 +02:00
|
|
|
romstage-y += spi.c
|
2016-02-11 02:47:03 +01:00
|
|
|
|
2016-05-26 21:22:34 +02:00
|
|
|
smm-y += mmap_boot.c
|
2016-02-05 05:13:34 +01:00
|
|
|
smm-y += pmutil.c
|
2016-05-13 09:47:14 +02:00
|
|
|
smm-y += smihandler.c
|
2016-05-26 21:22:34 +02:00
|
|
|
smm-y += spi.c
|
2016-06-10 22:49:21 +02:00
|
|
|
smm-y += uart_early.c
|
2017-08-05 20:12:44 +02:00
|
|
|
smm-y += uart.c
|
2015-11-10 02:06:34 +01:00
|
|
|
|
|
|
|
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
|
2016-03-05 06:33:04 +01:00
|
|
|
ramstage-y += cpu.c
|
2016-03-05 06:41:13 +01:00
|
|
|
ramstage-y += chip.c
|
2017-02-07 18:33:56 +01:00
|
|
|
ramstage-y += cse.c
|
2016-07-19 00:14:12 +02:00
|
|
|
ramstage-y += elog.c
|
2016-07-01 20:53:05 +02:00
|
|
|
ramstage-y += dsp.c
|
2015-12-16 01:06:15 +01:00
|
|
|
ramstage-y += graphics.c
|
2016-07-15 02:16:35 +02:00
|
|
|
ramstage-y += heci.c
|
2016-06-27 19:57:13 +02:00
|
|
|
ramstage-y += i2c.c
|
2016-02-25 01:49:07 +01:00
|
|
|
ramstage-$(CONFIG_SOC_UART_DEBUG) += uart_early.c
|
2015-11-13 03:19:41 +01:00
|
|
|
ramstage-y += lpc.c
|
2016-03-03 00:09:27 +01:00
|
|
|
ramstage-y += memmap.c
|
2016-02-13 00:12:43 +01:00
|
|
|
ramstage-y += mmap_boot.c
|
2016-07-01 23:36:03 +02:00
|
|
|
ramstage-y += p2sb.c
|
2016-03-09 01:12:06 +01:00
|
|
|
ramstage-y += uart.c
|
2016-06-21 23:22:16 +02:00
|
|
|
ramstage-y += nhlt.c
|
2017-05-19 15:08:24 +02:00
|
|
|
ramstage-y += systemagent.c
|
2016-02-25 00:08:23 +01:00
|
|
|
ramstage-y += spi.c
|
2016-02-05 05:13:34 +01:00
|
|
|
ramstage-y += pmutil.c
|
2016-02-11 22:46:28 +01:00
|
|
|
ramstage-y += pmc.c
|
2016-06-18 00:30:13 +02:00
|
|
|
ramstage-y += reset.c
|
2016-09-07 03:15:29 +02:00
|
|
|
ramstage-y += sram.c
|
2016-06-20 08:20:43 +02:00
|
|
|
ramstage-y += spi.c
|
2017-01-25 06:56:36 +01:00
|
|
|
ramstage-y += xdci.c
|
2017-02-25 00:37:30 +01:00
|
|
|
ramstage-y += sd.c
|
2015-10-06 19:33:49 +02:00
|
|
|
|
2016-03-18 17:19:38 +01:00
|
|
|
postcar-y += memmap.c
|
|
|
|
postcar-y += mmap_boot.c
|
2016-06-20 08:20:43 +02:00
|
|
|
postcar-y += spi.c
|
2016-03-18 17:19:38 +01:00
|
|
|
postcar-$(CONFIG_SOC_UART_DEBUG) += uart_early.c
|
|
|
|
|
2017-03-03 13:53:59 +01:00
|
|
|
postcar-$(CONFIG_FSP_CAR) += exit_car_fsp.S
|
2016-10-18 22:57:54 +02:00
|
|
|
|
2016-06-01 10:55:43 +02:00
|
|
|
verstage-y += car.c
|
2017-04-26 17:36:35 +02:00
|
|
|
verstage-y += i2c.c
|
2016-07-15 02:16:35 +02:00
|
|
|
verstage-y += heci.c
|
2016-05-26 18:00:44 +02:00
|
|
|
verstage-y += memmap.c
|
|
|
|
verstage-y += mmap_boot.c
|
|
|
|
verstage-$(CONFIG_SOC_UART_DEBUG) += uart_early.c
|
|
|
|
verstage-y += pmutil.c
|
2016-06-18 00:30:13 +02:00
|
|
|
verstage-y += reset.c
|
2016-06-20 08:20:43 +02:00
|
|
|
verstage-y += spi.c
|
2016-05-26 18:00:44 +02:00
|
|
|
|
2017-05-06 01:30:22 +02:00
|
|
|
ifeq ($(CONFIG_SOC_INTEL_GLK),y)
|
|
|
|
bootblock-y += gpio_glk.c
|
|
|
|
romstage-y += gpio_glk.c
|
|
|
|
smm-y += gpio_glk.c
|
|
|
|
ramstage-y += gpio_glk.c
|
|
|
|
else
|
|
|
|
bootblock-y += gpio_apl.c
|
|
|
|
romstage-y += gpio_apl.c
|
|
|
|
smm-y += gpio_apl.c
|
|
|
|
ramstage-y += gpio_apl.c
|
|
|
|
endif
|
|
|
|
|
2015-10-07 02:16:41 +02:00
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/apollolake/include
|
2017-05-06 01:30:22 +02:00
|
|
|
ifeq ($(CONFIG_SOC_INTEL_GLK),y)
|
|
|
|
CPPFLAGS_common += -I$(src)/vendorcode/intel/fsp/fsp2_0/glk
|
|
|
|
else
|
2016-08-31 22:46:58 +02:00
|
|
|
CPPFLAGS_common += -I$(src)/vendorcode/intel/fsp/fsp2_0/apollolake
|
2017-05-06 01:30:22 +02:00
|
|
|
endif
|
2015-10-07 02:16:41 +02:00
|
|
|
|
2016-05-17 09:03:27 +02:00
|
|
|
# Since FSP-M runs in CAR we need to relocate it to a specific address
|
|
|
|
$(CONFIG_FSP_M_CBFS)-options := -b $(CONFIG_FSP_M_ADDR)
|
|
|
|
|
2016-05-20 17:48:44 +02:00
|
|
|
ifeq ($(CONFIG_NEED_LBP2),y)
|
|
|
|
files_added::
|
|
|
|
$(CBFSTOOL) $(obj)/coreboot.rom write -r $(CONFIG_LBP2_FMAP_NAME) -f $(CONFIG_LBP2_FILE_NAME) --fill-upward
|
|
|
|
endif
|
|
|
|
|
2016-05-28 21:57:05 +02:00
|
|
|
# Bootblock on Apollolake platform lies in the IFWI region. In order to place
|
|
|
|
# the bootblock at the right location in IFWI image -
|
|
|
|
# a. Using ifwitool:
|
|
|
|
# 1. Create IFWI image (ifwi.bin.tmp) from input image
|
|
|
|
# (CONFIG_IFWI_FILE_NAME).
|
|
|
|
# 2. Delete OBBP sub-partition, if present.
|
|
|
|
# 3. Replace IBBL directory entry in IBBP sub-partition with currently
|
|
|
|
# generated bootblock.bin.
|
|
|
|
# b. Using cbfstool:
|
|
|
|
# 1. Write ifwi.bin.tmp to coreboot.rom using CONFIG_IFWI_FMAP_NAME.
|
|
|
|
ifeq ($(CONFIG_NEED_IFWI),y)
|
|
|
|
files_added:: $(IFWITOOL)
|
|
|
|
$(IFWITOOL) $(CONFIG_IFWI_FILE_NAME) create -f $(objcbfs)/ifwi.bin.tmp
|
|
|
|
$(IFWITOOL) $(objcbfs)/ifwi.bin.tmp delete -n OBBP
|
|
|
|
$(IFWITOOL) $(objcbfs)/ifwi.bin.tmp replace -n IBBP -f $(objcbfs)/bootblock.bin -d -e IBBL
|
|
|
|
$(CBFSTOOL) $(obj)/coreboot.rom write -r $(CONFIG_IFWI_FMAP_NAME) -f $(objcbfs)/ifwi.bin.tmp --fill-upward
|
|
|
|
endif
|
|
|
|
|
2016-06-21 23:22:16 +02:00
|
|
|
# DSP firmware settings files.
|
|
|
|
NHLT_BLOB_PATH = 3rdparty/blobs/soc/intel/apollolake/nhlt-blobs
|
2016-10-27 02:31:36 +02:00
|
|
|
DMIC_1CH_48KHZ_16B = dmic-1ch-48khz-16b.bin
|
2016-06-21 23:22:16 +02:00
|
|
|
DMIC_2CH_48KHZ_16B = dmic-2ch-48khz-16b.bin
|
2016-10-27 02:31:36 +02:00
|
|
|
DMIC_4CH_48KHZ_16B = dmic-4ch-48khz-16b.bin
|
2016-06-21 23:22:16 +02:00
|
|
|
MAX98357_RENDER = max98357-render-2ch-48khz-24b.bin
|
|
|
|
DA7219_RENDER_CAPTURE = dialog-2ch-48khz-24b.bin
|
|
|
|
|
2016-10-27 02:31:36 +02:00
|
|
|
cbfs-files-$(CONFIG_NHLT_DMIC_1CH_16B) += $(DMIC_1CH_48KHZ_16B)
|
|
|
|
$(DMIC_1CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_1CH_48KHZ_16B)
|
|
|
|
$(DMIC_1CH_48KHZ_16B)-type := raw
|
|
|
|
|
2016-08-18 23:08:37 +02:00
|
|
|
cbfs-files-$(CONFIG_NHLT_DMIC_2CH_16B) += $(DMIC_2CH_48KHZ_16B)
|
2016-06-21 23:22:16 +02:00
|
|
|
$(DMIC_2CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_2CH_48KHZ_16B)
|
|
|
|
$(DMIC_2CH_48KHZ_16B)-type := raw
|
|
|
|
|
2016-10-27 02:31:36 +02:00
|
|
|
cbfs-files-$(CONFIG_NHLT_DMIC_4CH_16B) += $(DMIC_4CH_48KHZ_16B)
|
|
|
|
$(DMIC_4CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_4CH_48KHZ_16B)
|
|
|
|
$(DMIC_4CH_48KHZ_16B)-type := raw
|
|
|
|
|
2016-06-21 23:22:16 +02:00
|
|
|
cbfs-files-$(CONFIG_NHLT_MAX98357) += $(MAX98357_RENDER)
|
|
|
|
$(MAX98357_RENDER)-file := $(NHLT_BLOB_PATH)/$(MAX98357_RENDER)
|
|
|
|
$(MAX98357_RENDER)-type := raw
|
|
|
|
|
|
|
|
cbfs-files-$(CONFIG_NHLT_DA7219) += $(DA7219_RENDER_CAPTURE)
|
|
|
|
$(DA7219_RENDER_CAPTURE)-file := $(NHLT_BLOB_PATH)/$(DA7219_RENDER_CAPTURE)
|
|
|
|
$(DA7219_RENDER_CAPTURE)-type := raw
|
|
|
|
|
2015-10-06 19:33:49 +02:00
|
|
|
endif
|