Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 2 | |
Nico Huber | dd274e2 | 2020-04-26 20:37:32 +0200 | [diff] [blame] | 3 | #include <acpi/acpi.h> |
John Zhao | eac84ca | 2018-08-13 09:45:37 -0700 | [diff] [blame] | 4 | #include <assert.h> |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 5 | #include <bootmode.h> |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 6 | #include <console/console.h> |
Kyösti Mälkki | 13f6650 | 2019-03-03 08:01:05 +0200 | [diff] [blame] | 7 | #include <device/mmio.h> |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 8 | #include <device/pci.h> |
| 9 | #include <device/pci_ids.h> |
Matt DeVillier | 1eea1dd | 2019-05-02 13:30:11 -0700 | [diff] [blame] | 10 | #include <drivers/intel/gma/i915.h> |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 11 | #include <drivers/intel/gma/libgfxinit.h> |
| 12 | #include <drivers/intel/gma/opregion.h> |
Tim Wawrzynczak | 84428f7 | 2021-09-14 13:59:33 -0600 | [diff] [blame] | 13 | #include <intelblocks/cfg.h> |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 14 | #include <intelblocks/graphics.h> |
Patrick Rudolph | 92106b1 | 2020-02-19 12:54:06 +0100 | [diff] [blame] | 15 | #include <fsp/graphics.h> |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 16 | #include <soc/pci_devs.h> |
Nico Huber | bd4af10 | 2020-04-26 20:43:42 +0200 | [diff] [blame] | 17 | #include <types.h> |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 18 | |
| 19 | /* SoC Overrides */ |
Matt DeVillier | 395ab9d | 2020-12-23 17:30:27 -0600 | [diff] [blame] | 20 | __weak void graphics_soc_panel_init(struct device *dev) |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 21 | { |
| 22 | /* |
Jonathan Neuschäfer | 5268b76 | 2018-02-12 12:24:25 +0100 | [diff] [blame] | 23 | * User needs to implement SoC override in case wishes |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 24 | * to perform certain specific graphics initialization |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 25 | */ |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 26 | } |
| 27 | |
Matt DeVillier | 1eea1dd | 2019-05-02 13:30:11 -0700 | [diff] [blame] | 28 | __weak const struct i915_gpu_controller_info * |
Furquan Shaikh | ec3dafd | 2020-04-24 21:53:42 -0700 | [diff] [blame] | 29 | intel_igd_get_controller_info(const struct device *device) |
Matt DeVillier | 1eea1dd | 2019-05-02 13:30:11 -0700 | [diff] [blame] | 30 | { |
| 31 | return NULL; |
| 32 | } |
| 33 | |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 34 | static void gma_init(struct device *const dev) |
| 35 | { |
| 36 | intel_gma_init_igd_opregion(); |
| 37 | |
Matt DeVillier | 395ab9d | 2020-12-23 17:30:27 -0600 | [diff] [blame] | 38 | /* SoC specific panel init/configuration. |
| 39 | If FSP has already run/configured the IGD, we can assume the |
| 40 | panel/backlight control have already been set up sufficiently |
| 41 | and that we shouldn't attempt to reconfigure things. */ |
| 42 | if (!CONFIG(RUN_FSP_GOP)) |
| 43 | graphics_soc_panel_init(dev); |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 44 | |
Nico Huber | dd274e2 | 2020-04-26 20:37:32 +0200 | [diff] [blame] | 45 | if (CONFIG(SOC_INTEL_CONFIGURE_DDI_A_4_LANES) && !acpi_is_wakeup_s3()) { |
| 46 | const u32 ddi_buf_ctl = graphics_gtt_read(DDI_BUF_CTL_A); |
| 47 | /* Only program if the buffer is not enabled yet. */ |
| 48 | if (!(ddi_buf_ctl & DDI_BUF_CTL_ENABLE)) |
| 49 | graphics_gtt_write(DDI_BUF_CTL_A, ddi_buf_ctl | DDI_A_4_LANES); |
| 50 | } |
| 51 | |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 52 | /* |
| 53 | * GFX PEIM module inside FSP binary is taking care of graphics |
| 54 | * initialization based on RUN_FSP_GOP Kconfig option and input |
Patrick Rudolph | 92106b1 | 2020-02-19 12:54:06 +0100 | [diff] [blame] | 55 | * VBT file. Need to report the framebuffer info after PCI enumeration. |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 56 | * |
| 57 | * In case of non-FSP solution, SoC need to select another |
| 58 | * Kconfig to perform GFX initialization. |
| 59 | */ |
Patrick Rudolph | 92106b1 | 2020-02-19 12:54:06 +0100 | [diff] [blame] | 60 | if (CONFIG(RUN_FSP_GOP)) { |
Tim Wawrzynczak | 84428f7 | 2021-09-14 13:59:33 -0600 | [diff] [blame] | 61 | const struct soc_intel_common_config *config = chip_get_common_soc_structure(); |
| 62 | fsp_report_framebuffer_info(graphics_get_memory_base(), |
| 63 | config->panel_orientation); |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 64 | return; |
Patrick Rudolph | 92106b1 | 2020-02-19 12:54:06 +0100 | [diff] [blame] | 65 | } |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 66 | |
Nico Huber | dd59762 | 2020-04-26 19:46:35 +0200 | [diff] [blame] | 67 | if (!CONFIG(NO_GFX_INIT)) |
| 68 | pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER); |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 69 | |
| 70 | if (CONFIG(MAINBOARD_USE_LIBGFXINIT)) { |
| 71 | if (!acpi_is_wakeup_s3() && display_init_required()) { |
| 72 | int lightup_ok; |
| 73 | gma_gfxinit(&lightup_ok); |
| 74 | gfx_set_init_done(lightup_ok); |
| 75 | } |
| 76 | } else { |
| 77 | /* Initialize PCI device, load/execute BIOS Option ROM */ |
| 78 | pci_dev_init(dev); |
| 79 | } |
| 80 | } |
| 81 | |
Furquan Shaikh | 7536a39 | 2020-04-24 21:59:21 -0700 | [diff] [blame] | 82 | static void gma_generate_ssdt(const struct device *device) |
Matt DeVillier | 1eea1dd | 2019-05-02 13:30:11 -0700 | [diff] [blame] | 83 | { |
| 84 | const struct i915_gpu_controller_info *gfx = intel_igd_get_controller_info(device); |
| 85 | |
| 86 | if (gfx) |
| 87 | drivers_intel_gma_displays_ssdt_generate(gfx); |
| 88 | } |
| 89 | |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 90 | static int is_graphics_disabled(struct device *dev) |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 91 | { |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 92 | /* Check if Graphics PCI device is disabled */ |
John Zhao | eac84ca | 2018-08-13 09:45:37 -0700 | [diff] [blame] | 93 | if (!dev || !dev->enabled) |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 94 | return 1; |
| 95 | |
| 96 | return 0; |
| 97 | } |
| 98 | |
| 99 | static uintptr_t graphics_get_bar(struct device *dev, unsigned long index) |
| 100 | { |
| 101 | struct resource *gm_res; |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 102 | |
| 103 | gm_res = find_resource(dev, index); |
| 104 | if (!gm_res) |
| 105 | return 0; |
| 106 | |
| 107 | return gm_res->base; |
| 108 | } |
| 109 | |
| 110 | uintptr_t graphics_get_memory_base(void) |
| 111 | { |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 112 | uintptr_t memory_base; |
Kyösti Mälkki | 71756c21 | 2019-07-12 13:10:19 +0300 | [diff] [blame] | 113 | struct device *dev = pcidev_path_on_root(SA_DEVFN_IGD); |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 114 | |
| 115 | if (is_graphics_disabled(dev)) |
| 116 | return 0; |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 117 | /* |
| 118 | * GFX PCI config space offset 0x18 know as Graphics |
| 119 | * Memory Range Address (GMADR) |
| 120 | */ |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 121 | memory_base = graphics_get_bar(dev, PCI_BASE_ADDRESS_2); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 122 | if (!memory_base) |
Keith Short | 15588b0 | 2019-05-09 11:40:34 -0600 | [diff] [blame] | 123 | die_with_post_code(POST_HW_INIT_FAILURE, |
| 124 | "GMADR is not programmed!"); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 125 | |
| 126 | return memory_base; |
| 127 | } |
| 128 | |
| 129 | static uintptr_t graphics_get_gtt_base(void) |
| 130 | { |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 131 | static uintptr_t gtt_base; |
Kyösti Mälkki | 71756c21 | 2019-07-12 13:10:19 +0300 | [diff] [blame] | 132 | struct device *dev = pcidev_path_on_root(SA_DEVFN_IGD); |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 133 | |
| 134 | if (is_graphics_disabled(dev)) |
| 135 | die("IGD is disabled!"); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 136 | /* |
| 137 | * GFX PCI config space offset 0x10 know as Graphics |
| 138 | * Translation Table Memory Mapped Range Address |
| 139 | * (GTTMMADR) |
| 140 | */ |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 141 | if (!gtt_base) { |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 142 | gtt_base = graphics_get_bar(dev, PCI_BASE_ADDRESS_0); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 143 | if (!gtt_base) |
Keith Short | 15588b0 | 2019-05-09 11:40:34 -0600 | [diff] [blame] | 144 | die_with_post_code(POST_HW_INIT_FAILURE, |
| 145 | "GTTMMADR is not programmed!"); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 146 | } |
| 147 | return gtt_base; |
| 148 | } |
| 149 | |
| 150 | uint32_t graphics_gtt_read(unsigned long reg) |
| 151 | { |
| 152 | return read32((void *)(graphics_get_gtt_base() + reg)); |
| 153 | } |
| 154 | |
| 155 | void graphics_gtt_write(unsigned long reg, uint32_t data) |
| 156 | { |
| 157 | write32((void *)(graphics_get_gtt_base() + reg), data); |
| 158 | } |
| 159 | |
| 160 | void graphics_gtt_rmw(unsigned long reg, uint32_t andmask, uint32_t ormask) |
| 161 | { |
| 162 | uint32_t val = graphics_gtt_read(reg); |
| 163 | val &= andmask; |
| 164 | val |= ormask; |
| 165 | graphics_gtt_write(reg, val); |
| 166 | } |
| 167 | |
| 168 | static const struct device_operations graphics_ops = { |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 169 | .read_resources = pci_dev_read_resources, |
| 170 | .set_resources = pci_dev_set_resources, |
| 171 | .enable_resources = pci_dev_enable_resources, |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 172 | .init = gma_init, |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 173 | .ops_pci = &pci_dev_ops_pci, |
Karthikeyan Ramasubramanian | 0e971e1 | 2020-01-09 11:32:16 -0700 | [diff] [blame] | 174 | #if CONFIG(HAVE_ACPI_TABLES) |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 175 | .acpi_fill_ssdt = gma_generate_ssdt, |
Karthikeyan Ramasubramanian | 0e971e1 | 2020-01-09 11:32:16 -0700 | [diff] [blame] | 176 | #endif |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 177 | .scan_bus = scan_generic_bus, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 178 | }; |
| 179 | |
| 180 | static const unsigned short pci_device_ids[] = { |
| 181 | PCI_DEVICE_ID_INTEL_APL_IGD_HD_505, |
| 182 | PCI_DEVICE_ID_INTEL_APL_IGD_HD_500, |
| 183 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_1, |
| 184 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_2, |
| 185 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_3, |
| 186 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_4, |
| 187 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_1, |
| 188 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_2, |
| 189 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_3, |
| 190 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_4, |
| 191 | PCI_DEVICE_ID_INTEL_GLK_IGD, |
| 192 | PCI_DEVICE_ID_INTEL_GLK_IGD_EU12, |
Lijian Zhao | 34745f6 | 2019-02-15 05:36:50 -0800 | [diff] [blame] | 193 | PCI_DEVICE_ID_INTEL_WHL_GT1_ULT_1, |
Krzysztof Sywula | bf7ad37 | 2018-07-17 10:45:21 -0700 | [diff] [blame] | 194 | PCI_DEVICE_ID_INTEL_WHL_GT2_ULT_1, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 195 | PCI_DEVICE_ID_INTEL_KBL_GT1_SULTM, |
Maxim Polyakov | 8595469 | 2019-09-23 16:08:41 +0300 | [diff] [blame] | 196 | PCI_DEVICE_ID_INTEL_KBL_GT1_SHALM_1, |
| 197 | PCI_DEVICE_ID_INTEL_KBL_GT1_SHALM_2, |
| 198 | PCI_DEVICE_ID_INTEL_KBL_GT1_SSRVM, |
| 199 | PCI_DEVICE_ID_INTEL_KBL_GT1F_DT2, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 200 | PCI_DEVICE_ID_INTEL_KBL_GT2_SULXM, |
| 201 | PCI_DEVICE_ID_INTEL_KBL_GT2_SULTM, |
| 202 | PCI_DEVICE_ID_INTEL_KBL_GT2_SULTMR, |
Maxim Polyakov | 8595469 | 2019-09-23 16:08:41 +0300 | [diff] [blame] | 203 | PCI_DEVICE_ID_INTEL_KBL_GT2_SSRVM, |
| 204 | PCI_DEVICE_ID_INTEL_KBL_GT2_SWSTM, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 205 | PCI_DEVICE_ID_INTEL_KBL_GT2_SHALM, |
V Sowmya | acc2a48 | 2018-01-23 15:27:23 +0530 | [diff] [blame] | 206 | PCI_DEVICE_ID_INTEL_KBL_GT2_DT2P2, |
Maxim Polyakov | 8595469 | 2019-09-23 16:08:41 +0300 | [diff] [blame] | 207 | PCI_DEVICE_ID_INTEL_KBL_GT2F_SULTM, |
| 208 | PCI_DEVICE_ID_INTEL_KBL_GT3E_SULTM_1, |
| 209 | PCI_DEVICE_ID_INTEL_KBL_GT3E_SULTM_2, |
| 210 | PCI_DEVICE_ID_INTEL_KBL_GT4_SHALM, |
Gaggery Tsai | 8aee7f7 | 2018-08-03 11:40:55 -0700 | [diff] [blame] | 211 | PCI_DEVICE_ID_INTEL_AML_GT2_ULX, |
Maxim Polyakov | 9563681 | 2019-09-20 22:06:57 +0300 | [diff] [blame] | 212 | PCI_DEVICE_ID_INTEL_SKL_GT1F_DT2, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 213 | PCI_DEVICE_ID_INTEL_SKL_GT1_SULTM, |
Maxim Polyakov | 46e6852 | 2019-02-25 10:46:18 +0300 | [diff] [blame] | 214 | PCI_DEVICE_ID_INTEL_SKL_GT2_DT2P1, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 215 | PCI_DEVICE_ID_INTEL_SKL_GT2_SULXM, |
| 216 | PCI_DEVICE_ID_INTEL_SKL_GT2_SULTM, |
| 217 | PCI_DEVICE_ID_INTEL_SKL_GT2_SHALM, |
| 218 | PCI_DEVICE_ID_INTEL_SKL_GT2_SWKSM, |
Maxim Polyakov | 9563681 | 2019-09-20 22:06:57 +0300 | [diff] [blame] | 219 | PCI_DEVICE_ID_INTEL_SKL_GT3_SULTM, |
| 220 | PCI_DEVICE_ID_INTEL_SKL_GT3E_SULTM_1, |
| 221 | PCI_DEVICE_ID_INTEL_SKL_GT3E_SULTM_2, |
| 222 | PCI_DEVICE_ID_INTEL_SKL_GT3FE_SSRVM, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 223 | PCI_DEVICE_ID_INTEL_SKL_GT4_SHALM, |
Maxim Polyakov | 9563681 | 2019-09-20 22:06:57 +0300 | [diff] [blame] | 224 | PCI_DEVICE_ID_INTEL_SKL_GT4E_SWSTM, |
praveen hodagatta pranesh | e26c4a4 | 2018-09-20 03:49:45 +0800 | [diff] [blame] | 225 | PCI_DEVICE_ID_INTEL_CFL_H_GT2, |
Nico Huber | ff3c964 | 2019-05-14 13:18:05 +0200 | [diff] [blame] | 226 | PCI_DEVICE_ID_INTEL_CFL_H_XEON_GT2, |
Nico Huber | 19dd694 | 2021-01-28 21:55:21 +0100 | [diff] [blame] | 227 | PCI_DEVICE_ID_INTEL_CFL_S_GT1_1, |
| 228 | PCI_DEVICE_ID_INTEL_CFL_S_GT1_2, |
Lean Sheng Tan | 38c3ff7 | 2019-05-27 13:06:35 +0800 | [diff] [blame] | 229 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_1, |
| 230 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_2, |
| 231 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_3, |
Felix Singer | d298ffe | 2019-07-28 13:27:11 +0200 | [diff] [blame] | 232 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_4, |
Nico Huber | 1b5e855 | 2021-01-28 21:45:34 +0100 | [diff] [blame] | 233 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_5, |
Aamir Bohra | 9eac039 | 2018-06-30 12:07:04 +0530 | [diff] [blame] | 234 | PCI_DEVICE_ID_INTEL_ICL_GT0_ULT, |
| 235 | PCI_DEVICE_ID_INTEL_ICL_GT0_5_ULT, |
| 236 | PCI_DEVICE_ID_INTEL_ICL_GT1_ULT, |
| 237 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_0, |
| 238 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_1, |
| 239 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_1, |
| 240 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_2, |
| 241 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_2, |
| 242 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_3, |
| 243 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_3, |
| 244 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_4, |
| 245 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_4, |
| 246 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_5, |
| 247 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_5, |
| 248 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_6, |
| 249 | PCI_DEVICE_ID_INTEL_ICL_GT3_ULT, |
Ronak Kanabar | f606a2f | 2019-02-04 16:06:50 +0530 | [diff] [blame] | 250 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_1, |
| 251 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_2, |
| 252 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_1, |
| 253 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_2, |
| 254 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_3, |
| 255 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_4, |
Meera Ravindranath | 970f1a4 | 2019-08-27 16:16:56 +0530 | [diff] [blame] | 256 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_5, |
| 257 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_6, |
Ronak Kanabar | f606a2f | 2019-02-04 16:06:50 +0530 | [diff] [blame] | 258 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_3, |
| 259 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_4, |
| 260 | PCI_DEVICE_ID_INTEL_CML_GT1_ULX_1, |
| 261 | PCI_DEVICE_ID_INTEL_CML_GT2_ULX_1, |
| 262 | PCI_DEVICE_ID_INTEL_CML_GT1_S_1, |
| 263 | PCI_DEVICE_ID_INTEL_CML_GT1_S_2, |
| 264 | PCI_DEVICE_ID_INTEL_CML_GT2_S_1, |
| 265 | PCI_DEVICE_ID_INTEL_CML_GT2_S_2, |
| 266 | PCI_DEVICE_ID_INTEL_CML_GT1_H_1, |
| 267 | PCI_DEVICE_ID_INTEL_CML_GT1_H_2, |
| 268 | PCI_DEVICE_ID_INTEL_CML_GT2_H_1, |
| 269 | PCI_DEVICE_ID_INTEL_CML_GT2_H_2, |
Gaggery Tsai | 12a651c | 2019-12-05 11:23:20 -0800 | [diff] [blame] | 270 | PCI_DEVICE_ID_INTEL_CML_GT2_S_G0, |
| 271 | PCI_DEVICE_ID_INTEL_CML_GT2_S_P0, |
| 272 | PCI_DEVICE_ID_INTEL_CML_GT2_H_R0, |
| 273 | PCI_DEVICE_ID_INTEL_CML_GT2_H_R1, |
Subrata Banik | ae69575 | 2019-11-12 12:47:43 +0530 | [diff] [blame] | 274 | PCI_DEVICE_ID_INTEL_TGL_GT0, |
Jeremy Soller | 191a8d7 | 2021-08-10 14:06:51 -0600 | [diff] [blame] | 275 | PCI_DEVICE_ID_INTEL_TGL_GT1_H_32, |
| 276 | PCI_DEVICE_ID_INTEL_TGL_GT1_H_16, |
Subrata Banik | ae69575 | 2019-11-12 12:47:43 +0530 | [diff] [blame] | 277 | PCI_DEVICE_ID_INTEL_TGL_GT2_ULT, |
| 278 | PCI_DEVICE_ID_INTEL_TGL_GT2_ULX, |
| 279 | PCI_DEVICE_ID_INTEL_TGL_GT3_ULT, |
Ravi Sarawadi | 049ab12 | 2020-07-06 22:04:14 -0700 | [diff] [blame] | 280 | PCI_DEVICE_ID_INTEL_TGL_GT2_ULT_1, |
Tan, Lean Sheng | 2613609 | 2020-01-20 19:13:56 -0800 | [diff] [blame] | 281 | PCI_DEVICE_ID_INTEL_EHL_GT1_1, |
| 282 | PCI_DEVICE_ID_INTEL_EHL_GT2_1, |
| 283 | PCI_DEVICE_ID_INTEL_EHL_GT1_2, |
| 284 | PCI_DEVICE_ID_INTEL_EHL_GT2_2, |
Tan, Lean Sheng | 8d2177b | 2021-05-23 23:06:43 -0700 | [diff] [blame] | 285 | PCI_DEVICE_ID_INTEL_EHL_GT1_2_1, |
Tan, Lean Sheng | 2613609 | 2020-01-20 19:13:56 -0800 | [diff] [blame] | 286 | PCI_DEVICE_ID_INTEL_EHL_GT1_3, |
| 287 | PCI_DEVICE_ID_INTEL_EHL_GT2_3, |
Meera Ravindranath | 3f4af0d | 2020-02-12 16:01:22 +0530 | [diff] [blame] | 288 | PCI_DEVICE_ID_INTEL_JSL_GT1, |
| 289 | PCI_DEVICE_ID_INTEL_JSL_GT2, |
Krishna Prasad Bhat | 166d930 | 2020-07-28 20:46:39 +0530 | [diff] [blame] | 290 | PCI_DEVICE_ID_INTEL_JSL_GT3, |
Krishna Prasad Bhat | 20f580b | 2020-09-17 19:42:39 +0530 | [diff] [blame] | 291 | PCI_DEVICE_ID_INTEL_JSL_GT4, |
Subrata Banik | f672f7f | 2020-08-03 14:29:25 +0530 | [diff] [blame] | 292 | PCI_DEVICE_ID_INTEL_ADL_GT0, |
| 293 | PCI_DEVICE_ID_INTEL_ADL_GT1, |
| 294 | PCI_DEVICE_ID_INTEL_ADL_GT1_1, |
| 295 | PCI_DEVICE_ID_INTEL_ADL_GT1_2, |
| 296 | PCI_DEVICE_ID_INTEL_ADL_GT1_3, |
| 297 | PCI_DEVICE_ID_INTEL_ADL_GT1_4, |
| 298 | PCI_DEVICE_ID_INTEL_ADL_GT1_5, |
| 299 | PCI_DEVICE_ID_INTEL_ADL_GT1_6, |
| 300 | PCI_DEVICE_ID_INTEL_ADL_GT1_7, |
| 301 | PCI_DEVICE_ID_INTEL_ADL_GT1_8, |
| 302 | PCI_DEVICE_ID_INTEL_ADL_GT1_9, |
| 303 | PCI_DEVICE_ID_INTEL_ADL_P_GT2, |
Maulik V Vaghela | 351f1e6 | 2021-05-13 11:34:14 +0530 | [diff] [blame] | 304 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_1, |
Sumeet R Pawnikar | dd4861a | 2021-05-19 15:59:55 +0530 | [diff] [blame] | 305 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_2, |
| 306 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_3, |
Sridhar Siricilla | 3102fd0 | 2021-06-07 23:38:17 +0530 | [diff] [blame] | 307 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_4, |
Meera Ravindranath | 8b60afe | 2021-06-18 11:02:45 +0530 | [diff] [blame] | 308 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_5, |
Maulik V Vaghela | b3d24d3 | 2021-07-02 14:42:03 +0530 | [diff] [blame] | 309 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_6, |
Subrata Banik | f672f7f | 2020-08-03 14:29:25 +0530 | [diff] [blame] | 310 | PCI_DEVICE_ID_INTEL_ADL_S_GT1, |
Maulik V Vaghela | afb143d | 2021-01-29 22:42:08 +0530 | [diff] [blame] | 311 | PCI_DEVICE_ID_INTEL_ADL_M_GT1, |
Bora Guvendik | 3198848 | 2021-07-23 14:12:57 -0700 | [diff] [blame] | 312 | PCI_DEVICE_ID_INTEL_ADL_M_GT2, |
Selma Bensaid | 326a2c4 | 2021-09-23 18:45:14 -0700 | [diff] [blame^] | 313 | PCI_DEVICE_ID_INTEL_ADL_M_GT3, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 314 | 0, |
| 315 | }; |
| 316 | |
| 317 | static const struct pci_driver graphics_driver __pci_driver = { |
| 318 | .ops = &graphics_ops, |
| 319 | .vendor = PCI_VENDOR_ID_INTEL, |
| 320 | .devices = pci_device_ids, |
| 321 | }; |