blob: 3c8bf5798a42ecc338ce9a18ebef54838c3c7ed0 [file] [log] [blame]
Arthur Heymansc8db6332019-06-17 13:32:13 +02001ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE_BASE),y)
Lijian Zhao81096042017-05-02 18:54:44 -07002
Lijian Zhao0ade3132017-07-07 12:25:20 -07003subdirs-y += romstage
Lijian Zhaoacfc1492017-07-06 15:27:27 -07004subdirs-y += ../../../cpu/intel/microcode
Pratik Prajapati01eda282017-08-17 21:09:45 -07005subdirs-y += ../../../cpu/intel/turbo
Ronak Kanabara432f382019-03-16 21:26:43 +05306subdirs-y += ../../../cpu/intel/common
Andrey Petrov9f244a52017-06-05 18:24:50 -07007
Andrey Petrov9f244a52017-06-05 18:24:50 -07008bootblock-y += bootblock/bootblock.c
Andrey Petrov9f244a52017-06-05 18:24:50 -07009bootblock-y += bootblock/pch.c
Lijian Zhaob3dfcb82017-08-16 22:18:52 -070010bootblock-y += pmutil.c
Andrey Petrov9f244a52017-06-05 18:24:50 -070011bootblock-y += bootblock/report_platform.c
Lijian Zhao32111172017-08-16 11:40:03 -070012bootblock-y += gspi.c
Lijian Zhao9bb684a2017-10-30 17:03:06 -070013bootblock-y += i2c.c
Lijian Zhao32111172017-08-16 11:40:03 -070014bootblock-y += spi.c
Caveh Jalali1428f012018-01-23 22:15:24 -080015bootblock-y += lpc.c
Subrata Banik7837c202018-05-07 17:13:40 +053016bootblock-y += p2sb.c
Nico Hubera96e66a2018-11-11 02:51:14 +010017bootblock-y += uart.c
Andrey Petrov9f244a52017-06-05 18:24:50 -070018
Subrata Banikcff6a1d2019-01-30 11:35:18 +053019romstage-y += cnl_memcfg_init.c
Lijian Zhao32111172017-08-16 11:40:03 -070020romstage-y += gspi.c
Lijian Zhao9bb684a2017-10-30 17:03:06 -070021romstage-y += i2c.c
Lijian Zhao9b50a572017-12-21 13:40:07 -080022romstage-y += lpc.c
Lijian Zhaob3dfcb82017-08-16 22:18:52 -070023romstage-y += pmutil.c
Andrey Petrov9f244a52017-06-05 18:24:50 -070024romstage-y += reset.c
Lijian Zhao32111172017-08-16 11:40:03 -070025romstage-y += spi.c
Nico Hubera96e66a2018-11-11 02:51:14 +010026romstage-y += uart.c
Lijian Zhao81096042017-05-02 18:54:44 -070027
Lijian Zhao2b074d92017-08-17 14:25:24 -070028ramstage-y += acpi.c
Lijian Zhao2f764f72017-07-14 11:09:10 -070029ramstage-y += chip.c
Pratik Prajapati01eda282017-08-17 21:09:45 -070030ramstage-y += cpu.c
Tim Wawrzynczak7f7c3882021-04-09 12:15:21 -060031ramstage-y += dptf.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
Tim Wawrzynczakd93531b2019-04-30 12:52:29 -060040ramstage-y += me.c
Lijian Zhao0e956f22017-10-22 18:30:39 -070041ramstage-y += nhlt.c
Subrata Banik7837c202018-05-07 17:13:40 +053042ramstage-y += p2sb.c
Lijian Zhaoac87a982017-08-28 17:46:55 -070043ramstage-y += pmc.c
Lijian Zhaob3dfcb82017-08-16 22:18:52 -070044ramstage-y += pmutil.c
Michael Niewöhnerb17f3d32019-10-24 00:19:45 +020045ramstage-y += reset.c
Lijian Zhao32111172017-08-16 11:40:03 -070046ramstage-y += spi.c
Lijian Zhaoaa3d78d2017-08-08 11:32:35 -070047ramstage-y += systemagent.c
Nico Hubera96e66a2018-11-11 02:51:14 +010048ramstage-y += uart.c
Pratik Prajapati9027e1b2017-08-23 17:37:43 -070049ramstage-y += vr_config.c
Bora Guvendikd2c63652017-09-19 14:04:37 -070050ramstage-y += sd.c
Karthikeyan Ramasubramanian0f718312019-07-03 13:02:37 -060051ramstage-y += xhci.c
Lijian Zhao8465a812017-07-11 12:33:22 -070052
V Sowmya91b027a2019-03-06 17:32:45 +053053smm-y += elog.c
Subrata Banik7837c202018-05-07 17:13:40 +053054smm-y += p2sb.c
Lijian Zhaof0eb9992017-09-14 14:51:12 -070055smm-y += pmutil.c
56smm-y += smihandler.c
Nico Hubera96e66a2018-11-11 02:51:14 +010057smm-y += uart.c
Karthikeyan Ramasubramanian0f718312019-07-03 13:02:37 -060058smm-y += xhci.c
Lijian Zhaof0eb9992017-09-14 14:51:12 -070059
Lijian Zhaob3dfcb82017-08-16 22:18:52 -070060postcar-y += pmutil.c
Philipp Deppenwiese545ed7a2018-02-14 16:47:12 +010061postcar-y += i2c.c
62postcar-y += gspi.c
63postcar-y += spi.c
Nico Hubera96e66a2018-11-11 02:51:14 +010064postcar-y += uart.c
Andrey Petrov9f244a52017-06-05 18:24:50 -070065
Nick Vaccaro9b675792017-08-29 19:55:57 -070066verstage-y += gspi.c
Lijian Zhao9bb684a2017-10-30 17:03:06 -070067verstage-y += i2c.c
Lijian Zhao6d7063c2017-08-29 17:26:48 -070068verstage-y += pmutil.c
Nick Vaccaro9b675792017-08-29 19:55:57 -070069verstage-y += spi.c
Nico Hubera96e66a2018-11-11 02:51:14 +010070verstage-y += uart.c
Nick Vaccaro9b675792017-08-29 19:55:57 -070071
praveen hodagatta pranesh521e48c2018-09-27 00:00:13 +080072ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE_PCH_H),y)
73bootblock-y += gpio_cnp_h.c
74romstage-y += gpio_cnp_h.c
75ramstage-y += gpio_cnp_h.c
76smm-y += gpio_cnp_h.c
Duncan Laurief95b4a72018-10-29 16:48:02 -070077verstage-y += gpio_cnp_h.c
praveen hodagatta pranesh521e48c2018-09-27 00:00:13 +080078else
79bootblock-y += gpio.c
80romstage-y += gpio.c
81ramstage-y += gpio.c
82smm-y += gpio.c
Duncan Laurief95b4a72018-10-29 16:48:02 -070083verstage-y += gpio.c
praveen hodagatta pranesh521e48c2018-09-27 00:00:13 +080084endif
85
Subrata Banik73b1bd72019-11-28 13:56:24 +053086bootblock-y += gpio_common.c
87ramstage-y += gpio_common.c
88
Arthur Heymansa4492902019-06-17 10:50:47 +020089ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE),y)
90# Not yet in intel-microcode repo
91#cpu_microcode_bins += $(wildcard 3rdparty/intel-microcode/intel-ucode/06-66-*)
92else ifeq ($(CONFIG_SOC_INTEL_COFFEELAKE),y)
93ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE_PCH_H),y)
94cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0a
95cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0b
96cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0c
97cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0d
98else
99cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-8e-0a
100endif
101else ifeq ($(CONFIG_SOC_INTEL_WHISKEYLAKE),y)
102cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-8e-0b
103cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-8e-0c
104else ifeq ($(CONFIG_SOC_INTEL_COMETLAKE),y)
Tim Crawford0698f0f2020-11-24 08:42:02 -0700105ifeq ($(CONFIG_SOC_INTEL_CANNONLAKE_PCH_H),y)
106cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-a5-02
107else
Felix Singer007faee2020-04-22 00:14:44 +0200108# Missing 06-a6-01
109cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-8e-0c
110cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-a6-00
111endif
Arthur Heymansa4492902019-06-17 10:50:47 +0200112endif
Lijian Zhaof9154c52019-01-11 15:05:16 -0800113
Andrey Petrov9f244a52017-06-05 18:24:50 -0700114CPPFLAGS_common += -I$(src)/soc/intel/cannonlake
115CPPFLAGS_common += -I$(src)/soc/intel/cannonlake/include
Lijian Zhao81096042017-05-02 18:54:44 -0700116
Lijian Zhao0e956f22017-10-22 18:30:39 -0700117# DSP firmware settings files.
118NHLT_BLOB_PATH = 3rdparty/blobs/soc/intel/cnl/nhlt-blobs
119DMIC_1CH_48KHZ_16B = dmic-1ch-48khz-16b.bin
120DMIC_2CH_48KHZ_16B = dmic-2ch-48khz-16b.bin
121DMIC_4CH_48KHZ_16B = dmic-4ch-48khz-16b.bin
122MAX98357_RENDER = max98357-render-2ch-48khz-24b.bin
123DA7219_RENDER_CAPTURE = dialog-2ch-48khz-24b.bin
N, Harshapriya4a1ee4b2017-11-28 14:29:26 -0800124MAX98373_RENDER_24B = max98373-render-2ch-48khz-24b.bin
125MAX98373_RENDER_16B = max98373-render-2ch-48khz-16b.bin
Lijian Zhao0e956f22017-10-22 18:30:39 -0700126
127cbfs-files-$(CONFIG_NHLT_DMIC_1CH_16B) += $(DMIC_1CH_48KHZ_16B)
128$(DMIC_1CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_1CH_48KHZ_16B)
129$(DMIC_1CH_48KHZ_16B)-type := raw
130
131cbfs-files-$(CONFIG_NHLT_DMIC_2CH_16B) += $(DMIC_2CH_48KHZ_16B)
132$(DMIC_2CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_2CH_48KHZ_16B)
133$(DMIC_2CH_48KHZ_16B)-type := raw
134
135cbfs-files-$(CONFIG_NHLT_DMIC_4CH_16B) += $(DMIC_4CH_48KHZ_16B)
136$(DMIC_4CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_4CH_48KHZ_16B)
137$(DMIC_4CH_48KHZ_16B)-type := raw
138
139cbfs-files-$(CONFIG_NHLT_MAX98357) += $(MAX98357_RENDER)
140$(MAX98357_RENDER)-file := $(NHLT_BLOB_PATH)/$(MAX98357_RENDER)
141$(MAX98357_RENDER)-type := raw
142
N, Harshapriya4a1ee4b2017-11-28 14:29:26 -0800143cbfs-files-$(CONFIG_NHLT_MAX98373) += $(MAX98373_RENDER_16B)
144$(MAX98373_RENDER_16B)-file := $(NHLT_BLOB_PATH)/$(MAX98373_RENDER_16B)
145$(MAX98373_RENDER_16B)-type := raw
146
147cbfs-files-$(CONFIG_NHLT_MAX98373) += $(MAX98373_RENDER_24B)
148$(MAX98373_RENDER_24B)-file := $(NHLT_BLOB_PATH)/$(MAX98373_RENDER_24B)
149$(MAX98373_RENDER_24B)-type := raw
150
Lijian Zhao0e956f22017-10-22 18:30:39 -0700151cbfs-files-$(CONFIG_NHLT_DA7219) += $(DA7219_RENDER_CAPTURE)
152$(DA7219_RENDER_CAPTURE)-file := $(NHLT_BLOB_PATH)/$(DA7219_RENDER_CAPTURE)
153$(DA7219_RENDER_CAPTURE)-type := raw
154
Lijian Zhao81096042017-05-02 18:54:44 -0700155endif