blob: 28c7cddcad8d5b9d9548652ba85de8bff7101c73 [file] [log] [blame]
Martin Roth9231f0b2022-10-28 22:39:23 -06001## SPDX-License-Identifier: GPL-2.0-only
Arthur Heymansc8db6332019-06-17 13:32:13 +02002ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE_BASE),y)
Lijian Zhao81096042017-05-02 18:54:44 -07003
Lijian Zhao0ade3132017-07-07 12:25:20 -07004subdirs-y += romstage
Lijian Zhaoacfc1492017-07-06 15:27:27 -07005subdirs-y += ../../../cpu/intel/microcode
Pratik Prajapati01eda282017-08-17 21:09:45 -07006subdirs-y += ../../../cpu/intel/turbo
Ronak Kanabara432f382019-03-16 21:26:43 +05307subdirs-y += ../../../cpu/intel/common
Andrey Petrov9f244a52017-06-05 18:24:50 -07008
Andrey Petrov9f244a52017-06-05 18:24:50 -07009bootblock-y += bootblock/bootblock.c
Andrey Petrov9f244a52017-06-05 18:24:50 -070010bootblock-y += bootblock/pch.c
Lijian Zhaob3dfcb82017-08-16 22:18:52 -070011bootblock-y += pmutil.c
Andrey Petrov9f244a52017-06-05 18:24:50 -070012bootblock-y += bootblock/report_platform.c
Lijian Zhao32111172017-08-16 11:40:03 -070013bootblock-y += gspi.c
Lijian Zhao9bb684a2017-10-30 17:03:06 -070014bootblock-y += i2c.c
Lijian Zhao32111172017-08-16 11:40:03 -070015bootblock-y += spi.c
Caveh Jalali1428f012018-01-23 22:15:24 -080016bootblock-y += lpc.c
Subrata Banik7837c202018-05-07 17:13:40 +053017bootblock-y += p2sb.c
Nico Hubera96e66a2018-11-11 02:51:14 +010018bootblock-y += uart.c
Andrey Petrov9f244a52017-06-05 18:24:50 -070019
Subrata Banikcff6a1d2019-01-30 11:35:18 +053020romstage-y += cnl_memcfg_init.c
Lijian Zhao32111172017-08-16 11:40:03 -070021romstage-y += gspi.c
Lijian Zhao9bb684a2017-10-30 17:03:06 -070022romstage-y += i2c.c
Lijian Zhao9b50a572017-12-21 13:40:07 -080023romstage-y += lpc.c
Lijian Zhaob3dfcb82017-08-16 22:18:52 -070024romstage-y += pmutil.c
Andrey Petrov9f244a52017-06-05 18:24:50 -070025romstage-y += reset.c
Lijian Zhao32111172017-08-16 11:40:03 -070026romstage-y += spi.c
Nico Hubera96e66a2018-11-11 02:51:14 +010027romstage-y += uart.c
Lijian Zhao81096042017-05-02 18:54:44 -070028
Lijian Zhao2b074d92017-08-17 14:25:24 -070029ramstage-y += acpi.c
Lijian Zhao2f764f72017-07-14 11:09:10 -070030ramstage-y += chip.c
Pratik Prajapati01eda282017-08-17 21:09:45 -070031ramstage-y += cpu.c
Duncan Laurie8601a162019-01-07 11:55:16 -080032ramstage-y += elog.c
Lijian Zhao6cf501c2017-10-10 18:26:18 -070033ramstage-y += finalize.c
Rizwan Qureshi742c6fe2018-09-18 22:43:41 +053034ramstage-y += fsp_params.c
Michael Niewöhnerc4f8fbd2020-12-19 14:11:32 +010035ramstage-y += graphics.c
Lijian Zhao32111172017-08-16 11:40:03 -070036ramstage-y += gspi.c
Lijian Zhao9bb684a2017-10-30 17:03:06 -070037ramstage-y += i2c.c
Subrata Banikc4986eb2018-05-09 14:55:09 +053038ramstage-y += lockdown.c
Lijian Zhaoa5158492017-08-29 14:37:17 -070039ramstage-y += lpc.c
Lijian Zhao0e956f22017-10-22 18:30:39 -070040ramstage-y += nhlt.c
Subrata Banik7837c202018-05-07 17:13:40 +053041ramstage-y += p2sb.c
Lijian Zhaoac87a982017-08-28 17:46:55 -070042ramstage-y += pmc.c
Lijian Zhaob3dfcb82017-08-16 22:18:52 -070043ramstage-y += pmutil.c
Michael Niewöhnerb17f3d32019-10-24 00:19:45 +020044ramstage-y += reset.c
Lijian Zhao32111172017-08-16 11:40:03 -070045ramstage-y += spi.c
Lijian Zhaoaa3d78d2017-08-08 11:32:35 -070046ramstage-y += systemagent.c
Nico Hubera96e66a2018-11-11 02:51:14 +010047ramstage-y += uart.c
Pratik Prajapati9027e1b2017-08-23 17:37:43 -070048ramstage-y += vr_config.c
Bora Guvendikd2c63652017-09-19 14:04:37 -070049ramstage-y += sd.c
Karthikeyan Ramasubramanian0f718312019-07-03 13:02:37 -060050ramstage-y += xhci.c
Lijian Zhao8465a812017-07-11 12:33:22 -070051
V Sowmya91b027a2019-03-06 17:32:45 +053052smm-y += elog.c
Subrata Banik7837c202018-05-07 17:13:40 +053053smm-y += p2sb.c
Lijian Zhaof0eb9992017-09-14 14:51:12 -070054smm-y += pmutil.c
55smm-y += smihandler.c
Nico Hubera96e66a2018-11-11 02:51:14 +010056smm-y += uart.c
Karthikeyan Ramasubramanian0f718312019-07-03 13:02:37 -060057smm-y += xhci.c
Lijian Zhaof0eb9992017-09-14 14:51:12 -070058
Lijian Zhaob3dfcb82017-08-16 22:18:52 -070059postcar-y += pmutil.c
Philipp Deppenwiese545ed7a2018-02-14 16:47:12 +010060postcar-y += i2c.c
61postcar-y += gspi.c
62postcar-y += spi.c
Nico Hubera96e66a2018-11-11 02:51:14 +010063postcar-y += uart.c
Andrey Petrov9f244a52017-06-05 18:24:50 -070064
Nick Vaccaro9b675792017-08-29 19:55:57 -070065verstage-y += gspi.c
Lijian Zhao9bb684a2017-10-30 17:03:06 -070066verstage-y += i2c.c
Lijian Zhao6d7063c2017-08-29 17:26:48 -070067verstage-y += pmutil.c
Nick Vaccaro9b675792017-08-29 19:55:57 -070068verstage-y += spi.c
Nico Hubera96e66a2018-11-11 02:51:14 +010069verstage-y += uart.c
Nick Vaccaro9b675792017-08-29 19:55:57 -070070
praveen hodagatta pranesh521e48c2018-09-27 00:00:13 +080071ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE_PCH_H),y)
72bootblock-y += gpio_cnp_h.c
73romstage-y += gpio_cnp_h.c
74ramstage-y += gpio_cnp_h.c
75smm-y += gpio_cnp_h.c
Duncan Laurief95b4a72018-10-29 16:48:02 -070076verstage-y += gpio_cnp_h.c
praveen hodagatta pranesh521e48c2018-09-27 00:00:13 +080077else
78bootblock-y += gpio.c
79romstage-y += gpio.c
80ramstage-y += gpio.c
81smm-y += gpio.c
Duncan Laurief95b4a72018-10-29 16:48:02 -070082verstage-y += gpio.c
praveen hodagatta pranesh521e48c2018-09-27 00:00:13 +080083endif
84
Subrata Banik73b1bd72019-11-28 13:56:24 +053085bootblock-y += gpio_common.c
86ramstage-y += gpio_common.c
87
Arthur Heymansa4492902019-06-17 10:50:47 +020088ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE),y)
89# Not yet in intel-microcode repo
90#cpu_microcode_bins += $(wildcard 3rdparty/intel-microcode/intel-ucode/06-66-*)
91else ifeq ($(CONFIG_SOC_INTEL_COFFEELAKE),y)
92ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE_PCH_H),y)
93cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0a
94cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0b
95cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0c
96cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0d
97else
98cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-8e-0a
99endif
100else ifeq ($(CONFIG_SOC_INTEL_WHISKEYLAKE),y)
101cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-8e-0b
102cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-8e-0c
103else ifeq ($(CONFIG_SOC_INTEL_COMETLAKE),y)
Tim Crawford0698f0f2020-11-24 08:42:02 -0700104ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE_PCH_H),y)
105cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-a5-02
106else
Felix Singer007faee2020-04-22 00:14:44 +0200107cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-8e-0c
108cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-a6-00
Michał Żygowski5f92ed82022-06-21 14:13:40 +0200109cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-a6-01
Felix Singer007faee2020-04-22 00:14:44 +0200110endif
Arthur Heymansa4492902019-06-17 10:50:47 +0200111endif
Lijian Zhaof9154c52019-01-11 15:05:16 -0800112
Andrey Petrov9f244a52017-06-05 18:24:50 -0700113CPPFLAGS_common += -I$(src)/soc/intel/cannonlake
114CPPFLAGS_common += -I$(src)/soc/intel/cannonlake/include
Lijian Zhao81096042017-05-02 18:54:44 -0700115
Lijian Zhao0e956f22017-10-22 18:30:39 -0700116# DSP firmware settings files.
117NHLT_BLOB_PATH = 3rdparty/blobs/soc/intel/cnl/nhlt-blobs
118DMIC_1CH_48KHZ_16B = dmic-1ch-48khz-16b.bin
119DMIC_2CH_48KHZ_16B = dmic-2ch-48khz-16b.bin
120DMIC_4CH_48KHZ_16B = dmic-4ch-48khz-16b.bin
121MAX98357_RENDER = max98357-render-2ch-48khz-24b.bin
122DA7219_RENDER_CAPTURE = dialog-2ch-48khz-24b.bin
N, Harshapriya4a1ee4b2017-11-28 14:29:26 -0800123MAX98373_RENDER_24B = max98373-render-2ch-48khz-24b.bin
124MAX98373_RENDER_16B = max98373-render-2ch-48khz-16b.bin
Lijian Zhao0e956f22017-10-22 18:30:39 -0700125
126cbfs-files-$(CONFIG_NHLT_DMIC_1CH_16B) += $(DMIC_1CH_48KHZ_16B)
127$(DMIC_1CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_1CH_48KHZ_16B)
128$(DMIC_1CH_48KHZ_16B)-type := raw
129
130cbfs-files-$(CONFIG_NHLT_DMIC_2CH_16B) += $(DMIC_2CH_48KHZ_16B)
131$(DMIC_2CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_2CH_48KHZ_16B)
132$(DMIC_2CH_48KHZ_16B)-type := raw
133
134cbfs-files-$(CONFIG_NHLT_DMIC_4CH_16B) += $(DMIC_4CH_48KHZ_16B)
135$(DMIC_4CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_4CH_48KHZ_16B)
136$(DMIC_4CH_48KHZ_16B)-type := raw
137
138cbfs-files-$(CONFIG_NHLT_MAX98357) += $(MAX98357_RENDER)
139$(MAX98357_RENDER)-file := $(NHLT_BLOB_PATH)/$(MAX98357_RENDER)
140$(MAX98357_RENDER)-type := raw
141
N, Harshapriya4a1ee4b2017-11-28 14:29:26 -0800142cbfs-files-$(CONFIG_NHLT_MAX98373) += $(MAX98373_RENDER_16B)
143$(MAX98373_RENDER_16B)-file := $(NHLT_BLOB_PATH)/$(MAX98373_RENDER_16B)
144$(MAX98373_RENDER_16B)-type := raw
145
146cbfs-files-$(CONFIG_NHLT_MAX98373) += $(MAX98373_RENDER_24B)
147$(MAX98373_RENDER_24B)-file := $(NHLT_BLOB_PATH)/$(MAX98373_RENDER_24B)
148$(MAX98373_RENDER_24B)-type := raw
149
Lijian Zhao0e956f22017-10-22 18:30:39 -0700150cbfs-files-$(CONFIG_NHLT_DA7219) += $(DA7219_RENDER_CAPTURE)
151$(DA7219_RENDER_CAPTURE)-file := $(NHLT_BLOB_PATH)/$(DA7219_RENDER_CAPTURE)
152$(DA7219_RENDER_CAPTURE)-type := raw
153
Lijian Zhao81096042017-05-02 18:54:44 -0700154endif