Martin Roth | 9231f0b | 2022-10-28 22:39:23 -0600 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Arthur Heymans | 4c7979a | 2019-06-17 14:30:10 +0200 | [diff] [blame] | 2 | ifeq ($(CONFIG_SOC_INTEL_COMMON_SKYLAKE_BASE),y) |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 3 | |
Aaron Durbin | ed8a723 | 2015-11-24 12:35:06 -0600 | [diff] [blame] | 4 | subdirs-y += nhlt |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 5 | subdirs-y += romstage |
Matt Delco | 9084c3c | 2018-07-27 14:17:29 -0700 | [diff] [blame] | 6 | subdirs-y += ../../../cpu/intel/common |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 7 | subdirs-y += ../../../cpu/intel/microcode |
| 8 | subdirs-y += ../../../cpu/intel/turbo |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 9 | |
Subrata Banik | 68d5d8b | 2016-07-18 14:13:52 +0530 | [diff] [blame] | 10 | bootblock-y += bootblock/bootblock.c |
Rizwan Qureshi | ae6a4b6 | 2017-04-26 21:06:35 +0530 | [diff] [blame] | 11 | bootblock-y += i2c.c |
Subrata Banik | e4a8537 | 2016-07-24 00:36:12 +0530 | [diff] [blame] | 12 | bootblock-y += bootblock/pch.c |
Naresh G Solanki | ecd9a94 | 2016-08-11 14:56:28 +0530 | [diff] [blame] | 13 | bootblock-y += bootblock/report_platform.c |
Subrata Banik | e4a8537 | 2016-07-24 00:36:12 +0530 | [diff] [blame] | 14 | bootblock-y += gpio.c |
Furquan Shaikh | 05a6f29 | 2017-03-31 14:02:47 -0700 | [diff] [blame] | 15 | bootblock-y += gspi.c |
Subrata Banik | 7837c20 | 2018-05-07 17:13:40 +0530 | [diff] [blame] | 16 | bootblock-y += p2sb.c |
Subrata Banik | e4a8537 | 2016-07-24 00:36:12 +0530 | [diff] [blame] | 17 | bootblock-y += pmutil.c |
Furquan Shaikh | 42cfdf5 | 2016-12-21 10:58:26 -0800 | [diff] [blame] | 18 | bootblock-y += spi.c |
Ravi Sarawadi | 1483d1f | 2017-09-28 17:06:01 -0700 | [diff] [blame] | 19 | bootblock-y += lpc.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 20 | bootblock-y += uart.c |
Subrata Banik | 68d5d8b | 2016-07-18 14:13:52 +0530 | [diff] [blame] | 21 | |
Hsuan-ting Chen | 642508a | 2021-10-27 10:59:41 +0000 | [diff] [blame] | 22 | verstage-y += gpio.c |
Furquan Shaikh | 05a6f29 | 2017-03-31 14:02:47 -0700 | [diff] [blame] | 23 | verstage-y += gspi.c |
Duncan Laurie | 64ce1d1 | 2016-10-25 20:05:31 -0700 | [diff] [blame] | 24 | verstage-y += pmutil.c |
Rizwan Qureshi | ae6a4b6 | 2017-04-26 21:06:35 +0530 | [diff] [blame] | 25 | verstage-y += i2c.c |
Furquan Shaikh | 42cfdf5 | 2016-12-21 10:58:26 -0800 | [diff] [blame] | 26 | verstage-y += spi.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 27 | verstage-y += uart.c |
Aaron Durbin | b66d673 | 2015-10-07 16:10:43 -0500 | [diff] [blame] | 28 | |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 29 | romstage-y += gpio.c |
Furquan Shaikh | 05a6f29 | 2017-03-31 14:02:47 -0700 | [diff] [blame] | 30 | romstage-y += gspi.c |
Rizwan Qureshi | ae6a4b6 | 2017-04-26 21:06:35 +0530 | [diff] [blame] | 31 | romstage-y += i2c.c |
Subrata Banik | ff8bf41 | 2016-08-19 12:33:42 +0530 | [diff] [blame] | 32 | romstage-y += me.c |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 33 | romstage-y += pmutil.c |
Michael Niewöhner | 0f91f79 | 2019-10-05 19:47:47 +0200 | [diff] [blame] | 34 | romstage-y += reset.c |
Furquan Shaikh | 42cfdf5 | 2016-12-21 10:58:26 -0800 | [diff] [blame] | 35 | romstage-y += spi.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 36 | romstage-y += uart.c |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 37 | |
| 38 | ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c |
Michael Niewöhner | 7ef1903 | 2019-10-08 00:30:38 +0200 | [diff] [blame] | 39 | ramstage-y += chip.c |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 40 | ramstage-y += cpu.c |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 41 | ramstage-y += elog.c |
Angel Pons | c3c7ef3 | 2020-07-12 19:08:57 +0200 | [diff] [blame] | 42 | ramstage-y += fadt.c |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 43 | ramstage-y += finalize.c |
| 44 | ramstage-y += gpio.c |
Furquan Shaikh | 05a6f29 | 2017-03-31 14:02:47 -0700 | [diff] [blame] | 45 | ramstage-y += gspi.c |
Duncan Laurie | 0d8bb74 | 2016-05-10 15:31:22 -0700 | [diff] [blame] | 46 | ramstage-y += i2c.c |
Subrata Banik | cb771a2 | 2017-11-28 16:26:08 +0530 | [diff] [blame] | 47 | ramstage-y += graphics.c |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 48 | ramstage-y += irq.c |
Subrata Banik | b51f54b | 2017-08-14 16:15:33 +0530 | [diff] [blame] | 49 | ramstage-y += lockdown.c |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 50 | ramstage-y += lpc.c |
Subrata Banik | ff8bf41 | 2016-08-19 12:33:42 +0530 | [diff] [blame] | 51 | ramstage-y += me.c |
Subrata Banik | 7837c20 | 2018-05-07 17:13:40 +0530 | [diff] [blame] | 52 | ramstage-y += p2sb.c |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 53 | ramstage-y += pmc.c |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 54 | ramstage-y += pmutil.c |
Michael Niewöhner | 0f91f79 | 2019-10-05 19:47:47 +0200 | [diff] [blame] | 55 | ramstage-y += reset.c |
Duncan Laurie | b25a45c | 2016-05-10 15:56:16 -0700 | [diff] [blame] | 56 | ramstage-y += sd.c |
Furquan Shaikh | 42cfdf5 | 2016-12-21 10:58:26 -0800 | [diff] [blame] | 57 | ramstage-y += spi.c |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 58 | ramstage-y += systemagent.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 59 | ramstage-y += uart.c |
Aaron Durbin | df21440 | 2015-12-14 16:44:26 -0600 | [diff] [blame] | 60 | ramstage-y += vr_config.c |
Karthikeyan Ramasubramanian | 0f71831 | 2019-07-03 13:02:37 -0600 | [diff] [blame] | 61 | ramstage-y += xhci.c |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 62 | |
Furquan Shaikh | c565bd4 | 2017-10-14 19:25:30 -0700 | [diff] [blame] | 63 | smm-y += elog.c |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 64 | smm-y += gpio.c |
Subrata Banik | 7837c20 | 2018-05-07 17:13:40 +0530 | [diff] [blame] | 65 | smm-y += p2sb.c |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 66 | smm-y += pmutil.c |
| 67 | smm-y += smihandler.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 68 | smm-y += uart.c |
Karthikeyan Ramasubramanian | 0f71831 | 2019-07-03 13:02:37 -0600 | [diff] [blame] | 69 | smm-y += xhci.c |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 70 | |
Youness Alaoui | b6b1b23 | 2017-06-22 15:43:49 -0400 | [diff] [blame] | 71 | postcar-y += gspi.c |
| 72 | postcar-y += spi.c |
Philipp Deppenwiese | 545ed7a | 2018-02-14 16:47:12 +0100 | [diff] [blame] | 73 | postcar-y += i2c.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 74 | postcar-y += uart.c |
Aaron Durbin | 79f0741 | 2017-04-16 21:49:29 -0500 | [diff] [blame] | 75 | |
Arthur Heymans | b0bbafe | 2019-06-17 12:42:53 +0200 | [diff] [blame] | 76 | ifeq ($(CONFIG_SKYLAKE_SOC_PCH_H),y) |
Wim Vervoorn | 2ab4f4b | 2019-10-23 10:22:06 +0200 | [diff] [blame] | 77 | ifeq ($(CONFIG_MAINBOARD_SUPPORTS_SKYLAKE_CPU),y) |
Arthur Heymans | 27d3f71 | 2018-01-05 17:51:46 +0100 | [diff] [blame] | 78 | # Skylake H Q0 |
Arthur Heymans | a449290 | 2019-06-17 10:50:47 +0200 | [diff] [blame] | 79 | cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-5e-03 |
Wim Vervoorn | 2ab4f4b | 2019-10-23 10:22:06 +0200 | [diff] [blame] | 80 | endif |
| 81 | ifeq ($(CONFIG_MAINBOARD_SUPPORTS_KABYLAKE_CPU),y) |
Arthur Heymans | 2020cbb | 2019-07-03 10:20:40 +0200 | [diff] [blame] | 82 | # Kabylake H B0 S0 |
Arthur Heymans | a449290 | 2019-06-17 10:50:47 +0200 | [diff] [blame] | 83 | cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-09 |
Wim Vervoorn | 2ab4f4b | 2019-10-23 10:22:06 +0200 | [diff] [blame] | 84 | endif |
Timofey Komarov | 7e7d27b | 2021-04-27 11:00:10 +0300 | [diff] [blame] | 85 | # CoffeeLake |
| 86 | ifeq ($(CONFIG_MAINBOARD_SUPPORTS_COFFEELAKE_CPU),y) |
| 87 | cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0a |
| 88 | cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0b |
| 89 | cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0c |
| 90 | cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-9e-0d |
| 91 | endif |
Arthur Heymans | b0bbafe | 2019-06-17 12:42:53 +0200 | [diff] [blame] | 92 | else |
Wim Vervoorn | 2ab4f4b | 2019-10-23 10:22:06 +0200 | [diff] [blame] | 93 | ifeq ($(CONFIG_MAINBOARD_SUPPORTS_SKYLAKE_CPU),y) |
Arthur Heymans | b0bbafe | 2019-06-17 12:42:53 +0200 | [diff] [blame] | 94 | # Skylake D0 |
Arthur Heymans | a449290 | 2019-06-17 10:50:47 +0200 | [diff] [blame] | 95 | cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-4e-03 |
Wim Vervoorn | 2ab4f4b | 2019-10-23 10:22:06 +0200 | [diff] [blame] | 96 | endif |
| 97 | ifeq ($(CONFIG_MAINBOARD_SUPPORTS_KABYLAKE_DUAL),y) |
Arthur Heymans | 2020cbb | 2019-07-03 10:20:40 +0200 | [diff] [blame] | 98 | # Kabylake H0, J0, J1 |
Arthur Heymans | a449290 | 2019-06-17 10:50:47 +0200 | [diff] [blame] | 99 | cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-8e-09 |
Wim Vervoorn | 2ab4f4b | 2019-10-23 10:22:06 +0200 | [diff] [blame] | 100 | endif |
| 101 | ifeq ($(CONFIG_MAINBOARD_SUPPORTS_KABYLAKE_QUAD),y) |
Arthur Heymans | 2020cbb | 2019-07-03 10:20:40 +0200 | [diff] [blame] | 102 | # Kabylake Y0 |
| 103 | cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-8e-0a |
Arthur Heymans | b0bbafe | 2019-06-17 12:42:53 +0200 | [diff] [blame] | 104 | endif |
Wim Vervoorn | 2ab4f4b | 2019-10-23 10:22:06 +0200 | [diff] [blame] | 105 | endif |
Arthur Heymans | 27d3f71 | 2018-01-05 17:51:46 +0100 | [diff] [blame] | 106 | # Missing for Skylake C0 (0x406e2), Kabylake G0 (0x406e8), Kabylake HA0 (0x506e8) |
| 107 | # since those are probably pre-release samples. |
Alexandru Gagniuc | 1d85700 | 2015-09-09 22:38:06 -0700 | [diff] [blame] | 108 | |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 109 | CPPFLAGS_common += -I$(src)/soc/intel/skylake |
| 110 | CPPFLAGS_common += -I$(src)/soc/intel/skylake/include |
| 111 | |
Elyes Haouas | 3ca8477 | 2022-12-31 09:40:20 +0100 | [diff] [blame] | 112 | ifeq ($(CONFIG_BOARD_STARLABS_STARBOOK_ADL) $(CONFIG_BOARD_STARLABS_LABTOP_CML) $(CONFIG_BOARD_STARLABS_STARBOOK_TGL) $(CONFIG_BOARD_OCP_TIOGAPASS),y) |
Iru Cai | 2128d62 | 2016-09-02 16:37:39 +0800 | [diff] [blame] | 113 | CPPFLAGS_common += -I3rdparty/blobs/mainboard/$(MAINBOARDDIR) |
Elyes Haouas | 3ca8477 | 2022-12-31 09:40:20 +0100 | [diff] [blame] | 114 | endif |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 115 | |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 116 | endif |