2017-05-03 03:54:44 +02:00
|
|
|
ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE),y)
|
|
|
|
|
2017-07-07 21:25:20 +02:00
|
|
|
subdirs-y += romstage
|
2017-07-07 00:27:27 +02:00
|
|
|
subdirs-y += ../../../cpu/intel/microcode
|
2017-08-18 06:09:45 +02:00
|
|
|
subdirs-y += ../../../cpu/intel/turbo
|
|
|
|
subdirs-y += ../../../cpu/x86/lapic
|
2017-06-06 03:24:50 +02:00
|
|
|
subdirs-y += ../../../cpu/x86/mtrr
|
2017-09-14 23:51:12 +02:00
|
|
|
subdirs-y += ../../../cpu/x86/smm
|
2017-06-06 03:24:50 +02:00
|
|
|
subdirs-y += ../../../cpu/x86/tsc
|
|
|
|
|
|
|
|
bootblock-y += bootblock/bootblock.c
|
|
|
|
bootblock-y += bootblock/cpu.c
|
|
|
|
bootblock-y += bootblock/pch.c
|
2017-08-17 07:18:52 +02:00
|
|
|
bootblock-y += pmutil.c
|
2017-06-06 03:24:50 +02:00
|
|
|
bootblock-y += bootblock/report_platform.c
|
2017-08-16 20:40:03 +02:00
|
|
|
bootblock-y += gspi.c
|
2017-10-31 01:03:06 +01:00
|
|
|
bootblock-y += i2c.c
|
2017-07-11 21:26:56 +02:00
|
|
|
bootblock-y += memmap.c
|
2017-08-16 20:40:03 +02:00
|
|
|
bootblock-y += spi.c
|
2018-01-24 07:15:24 +01:00
|
|
|
bootblock-y += lpc.c
|
2018-05-07 13:43:40 +02:00
|
|
|
bootblock-y += p2sb.c
|
2017-07-11 21:33:22 +02:00
|
|
|
bootblock-$(CONFIG_UART_DEBUG) += uart.c
|
2017-06-06 03:24:50 +02:00
|
|
|
|
2018-08-20 23:06:13 +02:00
|
|
|
romstage-$(CONFIG_SOC_INTEL_CANNONLAKE_MEMCFG_INIT) += cnl_memcfg_init.c
|
2017-08-16 20:40:03 +02:00
|
|
|
romstage-y += gspi.c
|
2017-10-31 01:03:06 +01:00
|
|
|
romstage-y += i2c.c
|
2017-12-21 22:40:07 +01:00
|
|
|
romstage-y += lpc.c
|
2017-07-11 21:26:56 +02:00
|
|
|
romstage-y += memmap.c
|
2017-08-17 07:18:52 +02:00
|
|
|
romstage-y += pmutil.c
|
2017-06-06 03:24:50 +02:00
|
|
|
romstage-y += reset.c
|
2017-08-16 20:40:03 +02:00
|
|
|
romstage-y += spi.c
|
2017-07-11 21:33:22 +02:00
|
|
|
romstage-$(CONFIG_UART_DEBUG) += uart.c
|
2017-05-03 03:54:44 +02:00
|
|
|
|
2017-08-17 23:25:24 +02:00
|
|
|
ramstage-y += acpi.c
|
2017-07-14 20:09:10 +02:00
|
|
|
ramstage-y += chip.c
|
2017-08-18 06:09:45 +02:00
|
|
|
ramstage-y += cpu.c
|
2019-01-07 20:55:16 +01:00
|
|
|
ramstage-y += elog.c
|
2017-10-11 03:26:18 +02:00
|
|
|
ramstage-y += finalize.c
|
2018-09-18 19:13:41 +02:00
|
|
|
ramstage-y += fsp_params.c
|
2017-10-12 20:33:01 +02:00
|
|
|
ramstage-y += graphics.c
|
2017-08-16 20:40:03 +02:00
|
|
|
ramstage-y += gspi.c
|
2017-10-31 01:03:06 +01:00
|
|
|
ramstage-y += i2c.c
|
2018-05-09 11:25:09 +02:00
|
|
|
ramstage-y += lockdown.c
|
2017-08-29 23:37:17 +02:00
|
|
|
ramstage-y += lpc.c
|
2017-07-14 20:09:10 +02:00
|
|
|
ramstage-y += memmap.c
|
2017-10-23 03:30:39 +02:00
|
|
|
ramstage-y += nhlt.c
|
2018-05-07 13:43:40 +02:00
|
|
|
ramstage-y += p2sb.c
|
2017-08-29 02:46:55 +02:00
|
|
|
ramstage-y += pmc.c
|
2017-08-17 07:18:52 +02:00
|
|
|
ramstage-y += pmutil.c
|
2017-06-06 03:24:50 +02:00
|
|
|
ramstage-$(CONFIG_PLATFORM_USES_FSP2_0) += reset.c
|
2017-09-14 23:51:12 +02:00
|
|
|
ramstage-y += smmrelocate.c
|
2017-08-16 20:40:03 +02:00
|
|
|
ramstage-y += spi.c
|
2017-08-08 20:32:35 +02:00
|
|
|
ramstage-y += systemagent.c
|
2017-07-11 21:33:22 +02:00
|
|
|
ramstage-$(CONFIG_UART_DEBUG) += uart.c
|
2017-08-24 02:37:43 +02:00
|
|
|
ramstage-y += vr_config.c
|
2017-09-19 23:04:37 +02:00
|
|
|
ramstage-y += sd.c
|
2017-07-11 21:33:22 +02:00
|
|
|
|
2018-05-07 13:43:40 +02:00
|
|
|
smm-y += p2sb.c
|
2017-09-14 23:51:12 +02:00
|
|
|
smm-y += pmutil.c
|
|
|
|
smm-y += smihandler.c
|
|
|
|
smm-$(CONFIG_UART_DEBUG) += uart.c
|
|
|
|
|
2017-07-11 21:33:22 +02:00
|
|
|
postcar-y += memmap.c
|
2017-08-17 07:18:52 +02:00
|
|
|
postcar-y += pmutil.c
|
2018-02-14 16:47:12 +01:00
|
|
|
postcar-y += i2c.c
|
|
|
|
postcar-y += gspi.c
|
|
|
|
postcar-y += spi.c
|
2017-07-11 21:33:22 +02:00
|
|
|
postcar-$(CONFIG_UART_DEBUG) += uart.c
|
2017-06-06 03:24:50 +02:00
|
|
|
|
2017-08-30 04:55:57 +02:00
|
|
|
verstage-y += gspi.c
|
2017-10-31 01:03:06 +01:00
|
|
|
verstage-y += i2c.c
|
2017-08-30 02:26:48 +02:00
|
|
|
verstage-y += pmutil.c
|
2017-08-30 04:55:57 +02:00
|
|
|
verstage-y += spi.c
|
2017-08-30 02:26:48 +02:00
|
|
|
verstage-$(CONFIG_UART_DEBUG) += uart.c
|
2017-08-30 04:55:57 +02:00
|
|
|
|
2018-09-26 18:00:13 +02:00
|
|
|
ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE_PCH_H),y)
|
|
|
|
bootblock-y += gpio_cnp_h.c
|
|
|
|
romstage-y += gpio_cnp_h.c
|
|
|
|
ramstage-y += gpio_cnp_h.c
|
|
|
|
smm-y += gpio_cnp_h.c
|
2018-10-30 00:48:02 +01:00
|
|
|
verstage-y += gpio_cnp_h.c
|
2018-09-26 18:00:13 +02:00
|
|
|
else
|
|
|
|
bootblock-y += gpio.c
|
|
|
|
romstage-y += gpio.c
|
|
|
|
ramstage-y += gpio.c
|
|
|
|
smm-y += gpio.c
|
2018-10-30 00:48:02 +01:00
|
|
|
verstage-y += gpio.c
|
2018-09-26 18:00:13 +02:00
|
|
|
endif
|
|
|
|
|
2017-06-06 03:24:50 +02:00
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/cannonlake
|
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/cannonlake/include
|
2017-05-03 03:54:44 +02:00
|
|
|
|
2017-10-23 03:30:39 +02:00
|
|
|
# DSP firmware settings files.
|
|
|
|
NHLT_BLOB_PATH = 3rdparty/blobs/soc/intel/cnl/nhlt-blobs
|
|
|
|
DMIC_1CH_48KHZ_16B = dmic-1ch-48khz-16b.bin
|
|
|
|
DMIC_2CH_48KHZ_16B = dmic-2ch-48khz-16b.bin
|
|
|
|
DMIC_4CH_48KHZ_16B = dmic-4ch-48khz-16b.bin
|
|
|
|
MAX98357_RENDER = max98357-render-2ch-48khz-24b.bin
|
|
|
|
DA7219_RENDER_CAPTURE = dialog-2ch-48khz-24b.bin
|
2017-11-28 23:29:26 +01:00
|
|
|
MAX98373_RENDER_24B = max98373-render-2ch-48khz-24b.bin
|
|
|
|
MAX98373_RENDER_16B = max98373-render-2ch-48khz-16b.bin
|
2017-10-23 03:30:39 +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
|
|
|
|
|
|
|
|
cbfs-files-$(CONFIG_NHLT_DMIC_2CH_16B) += $(DMIC_2CH_48KHZ_16B)
|
|
|
|
$(DMIC_2CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_2CH_48KHZ_16B)
|
|
|
|
$(DMIC_2CH_48KHZ_16B)-type := raw
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
cbfs-files-$(CONFIG_NHLT_MAX98357) += $(MAX98357_RENDER)
|
|
|
|
$(MAX98357_RENDER)-file := $(NHLT_BLOB_PATH)/$(MAX98357_RENDER)
|
|
|
|
$(MAX98357_RENDER)-type := raw
|
|
|
|
|
2017-11-28 23:29:26 +01:00
|
|
|
cbfs-files-$(CONFIG_NHLT_MAX98373) += $(MAX98373_RENDER_16B)
|
|
|
|
$(MAX98373_RENDER_16B)-file := $(NHLT_BLOB_PATH)/$(MAX98373_RENDER_16B)
|
|
|
|
$(MAX98373_RENDER_16B)-type := raw
|
|
|
|
|
|
|
|
cbfs-files-$(CONFIG_NHLT_MAX98373) += $(MAX98373_RENDER_24B)
|
|
|
|
$(MAX98373_RENDER_24B)-file := $(NHLT_BLOB_PATH)/$(MAX98373_RENDER_24B)
|
|
|
|
$(MAX98373_RENDER_24B)-type := raw
|
|
|
|
|
2017-10-23 03:30:39 +02:00
|
|
|
cbfs-files-$(CONFIG_NHLT_DA7219) += $(DA7219_RENDER_CAPTURE)
|
|
|
|
$(DA7219_RENDER_CAPTURE)-file := $(NHLT_BLOB_PATH)/$(DA7219_RENDER_CAPTURE)
|
|
|
|
$(DA7219_RENDER_CAPTURE)-type := raw
|
|
|
|
|
2017-05-03 03:54:44 +02:00
|
|
|
endif
|