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(); |
Ethan Tsao | 646b6a0 | 2022-01-25 15:14:38 -0800 | [diff] [blame] | 62 | fsp_report_framebuffer_info(graphics_get_framebuffer_address(), |
Tim Wawrzynczak | 84428f7 | 2021-09-14 13:59:33 -0600 | [diff] [blame] | 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 | |
Angel Pons | c1bfbe0 | 2021-11-03 13:18:53 +0100 | [diff] [blame] | 103 | gm_res = probe_resource(dev, index); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 104 | if (!gm_res) |
| 105 | return 0; |
| 106 | |
| 107 | return gm_res->base; |
| 108 | } |
| 109 | |
Ethan Tsao | 646b6a0 | 2022-01-25 15:14:38 -0800 | [diff] [blame] | 110 | uintptr_t graphics_get_framebuffer_address(void) |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 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; |
Ethan Tsao | 646b6a0 | 2022-01-25 15:14:38 -0800 | [diff] [blame] | 117 | |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 118 | memory_base = graphics_get_bar(dev, PCI_BASE_ADDRESS_2); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 119 | if (!memory_base) |
Keith Short | 15588b0 | 2019-05-09 11:40:34 -0600 | [diff] [blame] | 120 | die_with_post_code(POST_HW_INIT_FAILURE, |
Ethan Tsao | 646b6a0 | 2022-01-25 15:14:38 -0800 | [diff] [blame] | 121 | "Graphic memory bar2 is not programmed!"); |
| 122 | |
| 123 | memory_base += CONFIG_SOC_INTEL_GFX_FRAMEBUFFER_OFFSET; |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 124 | |
| 125 | return memory_base; |
| 126 | } |
| 127 | |
| 128 | static uintptr_t graphics_get_gtt_base(void) |
| 129 | { |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 130 | static uintptr_t gtt_base; |
Kyösti Mälkki | 71756c21 | 2019-07-12 13:10:19 +0300 | [diff] [blame] | 131 | struct device *dev = pcidev_path_on_root(SA_DEVFN_IGD); |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 132 | |
| 133 | if (is_graphics_disabled(dev)) |
| 134 | die("IGD is disabled!"); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 135 | /* |
| 136 | * GFX PCI config space offset 0x10 know as Graphics |
| 137 | * Translation Table Memory Mapped Range Address |
| 138 | * (GTTMMADR) |
| 139 | */ |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 140 | if (!gtt_base) { |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 141 | gtt_base = graphics_get_bar(dev, PCI_BASE_ADDRESS_0); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 142 | if (!gtt_base) |
Keith Short | 15588b0 | 2019-05-09 11:40:34 -0600 | [diff] [blame] | 143 | die_with_post_code(POST_HW_INIT_FAILURE, |
| 144 | "GTTMMADR is not programmed!"); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 145 | } |
| 146 | return gtt_base; |
| 147 | } |
| 148 | |
| 149 | uint32_t graphics_gtt_read(unsigned long reg) |
| 150 | { |
| 151 | return read32((void *)(graphics_get_gtt_base() + reg)); |
| 152 | } |
| 153 | |
| 154 | void graphics_gtt_write(unsigned long reg, uint32_t data) |
| 155 | { |
| 156 | write32((void *)(graphics_get_gtt_base() + reg), data); |
| 157 | } |
| 158 | |
| 159 | void graphics_gtt_rmw(unsigned long reg, uint32_t andmask, uint32_t ormask) |
| 160 | { |
| 161 | uint32_t val = graphics_gtt_read(reg); |
| 162 | val &= andmask; |
| 163 | val |= ormask; |
| 164 | graphics_gtt_write(reg, val); |
| 165 | } |
| 166 | |
| 167 | static const struct device_operations graphics_ops = { |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 168 | .read_resources = pci_dev_read_resources, |
| 169 | .set_resources = pci_dev_set_resources, |
| 170 | .enable_resources = pci_dev_enable_resources, |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 171 | .init = gma_init, |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 172 | .ops_pci = &pci_dev_ops_pci, |
Karthikeyan Ramasubramanian | 0e971e1 | 2020-01-09 11:32:16 -0700 | [diff] [blame] | 173 | #if CONFIG(HAVE_ACPI_TABLES) |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 174 | .acpi_fill_ssdt = gma_generate_ssdt, |
Karthikeyan Ramasubramanian | 0e971e1 | 2020-01-09 11:32:16 -0700 | [diff] [blame] | 175 | #endif |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 176 | .scan_bus = scan_generic_bus, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 177 | }; |
| 178 | |
| 179 | static const unsigned short pci_device_ids[] = { |
| 180 | PCI_DEVICE_ID_INTEL_APL_IGD_HD_505, |
| 181 | PCI_DEVICE_ID_INTEL_APL_IGD_HD_500, |
| 182 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_1, |
| 183 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_2, |
| 184 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_3, |
| 185 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_4, |
| 186 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_1, |
| 187 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_2, |
| 188 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_3, |
| 189 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_4, |
| 190 | PCI_DEVICE_ID_INTEL_GLK_IGD, |
| 191 | PCI_DEVICE_ID_INTEL_GLK_IGD_EU12, |
Lijian Zhao | 34745f6 | 2019-02-15 05:36:50 -0800 | [diff] [blame] | 192 | PCI_DEVICE_ID_INTEL_WHL_GT1_ULT_1, |
Krzysztof Sywula | bf7ad37 | 2018-07-17 10:45:21 -0700 | [diff] [blame] | 193 | PCI_DEVICE_ID_INTEL_WHL_GT2_ULT_1, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 194 | PCI_DEVICE_ID_INTEL_KBL_GT1_SULTM, |
Maxim Polyakov | 8595469 | 2019-09-23 16:08:41 +0300 | [diff] [blame] | 195 | PCI_DEVICE_ID_INTEL_KBL_GT1_SHALM_1, |
| 196 | PCI_DEVICE_ID_INTEL_KBL_GT1_SHALM_2, |
| 197 | PCI_DEVICE_ID_INTEL_KBL_GT1_SSRVM, |
| 198 | PCI_DEVICE_ID_INTEL_KBL_GT1F_DT2, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 199 | PCI_DEVICE_ID_INTEL_KBL_GT2_SULXM, |
| 200 | PCI_DEVICE_ID_INTEL_KBL_GT2_SULTM, |
| 201 | PCI_DEVICE_ID_INTEL_KBL_GT2_SULTMR, |
Maxim Polyakov | 8595469 | 2019-09-23 16:08:41 +0300 | [diff] [blame] | 202 | PCI_DEVICE_ID_INTEL_KBL_GT2_SSRVM, |
| 203 | PCI_DEVICE_ID_INTEL_KBL_GT2_SWSTM, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 204 | PCI_DEVICE_ID_INTEL_KBL_GT2_SHALM, |
V Sowmya | acc2a48 | 2018-01-23 15:27:23 +0530 | [diff] [blame] | 205 | PCI_DEVICE_ID_INTEL_KBL_GT2_DT2P2, |
Maxim Polyakov | 8595469 | 2019-09-23 16:08:41 +0300 | [diff] [blame] | 206 | PCI_DEVICE_ID_INTEL_KBL_GT2F_SULTM, |
| 207 | PCI_DEVICE_ID_INTEL_KBL_GT3E_SULTM_1, |
| 208 | PCI_DEVICE_ID_INTEL_KBL_GT3E_SULTM_2, |
| 209 | PCI_DEVICE_ID_INTEL_KBL_GT4_SHALM, |
Gaggery Tsai | 8aee7f7 | 2018-08-03 11:40:55 -0700 | [diff] [blame] | 210 | PCI_DEVICE_ID_INTEL_AML_GT2_ULX, |
Maxim Polyakov | 9563681 | 2019-09-20 22:06:57 +0300 | [diff] [blame] | 211 | PCI_DEVICE_ID_INTEL_SKL_GT1F_DT2, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 212 | PCI_DEVICE_ID_INTEL_SKL_GT1_SULTM, |
Maxim Polyakov | 46e6852 | 2019-02-25 10:46:18 +0300 | [diff] [blame] | 213 | PCI_DEVICE_ID_INTEL_SKL_GT2_DT2P1, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 214 | PCI_DEVICE_ID_INTEL_SKL_GT2_SULXM, |
| 215 | PCI_DEVICE_ID_INTEL_SKL_GT2_SULTM, |
| 216 | PCI_DEVICE_ID_INTEL_SKL_GT2_SHALM, |
| 217 | PCI_DEVICE_ID_INTEL_SKL_GT2_SWKSM, |
Maxim Polyakov | 9563681 | 2019-09-20 22:06:57 +0300 | [diff] [blame] | 218 | PCI_DEVICE_ID_INTEL_SKL_GT3_SULTM, |
| 219 | PCI_DEVICE_ID_INTEL_SKL_GT3E_SULTM_1, |
| 220 | PCI_DEVICE_ID_INTEL_SKL_GT3E_SULTM_2, |
| 221 | PCI_DEVICE_ID_INTEL_SKL_GT3FE_SSRVM, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 222 | PCI_DEVICE_ID_INTEL_SKL_GT4_SHALM, |
Maxim Polyakov | 9563681 | 2019-09-20 22:06:57 +0300 | [diff] [blame] | 223 | PCI_DEVICE_ID_INTEL_SKL_GT4E_SWSTM, |
praveen hodagatta pranesh | e26c4a4 | 2018-09-20 03:49:45 +0800 | [diff] [blame] | 224 | PCI_DEVICE_ID_INTEL_CFL_H_GT2, |
Nico Huber | ff3c964 | 2019-05-14 13:18:05 +0200 | [diff] [blame] | 225 | PCI_DEVICE_ID_INTEL_CFL_H_XEON_GT2, |
Nico Huber | 19dd694 | 2021-01-28 21:55:21 +0100 | [diff] [blame] | 226 | PCI_DEVICE_ID_INTEL_CFL_S_GT1_1, |
| 227 | PCI_DEVICE_ID_INTEL_CFL_S_GT1_2, |
Lean Sheng Tan | 38c3ff7 | 2019-05-27 13:06:35 +0800 | [diff] [blame] | 228 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_1, |
| 229 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_2, |
| 230 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_3, |
Felix Singer | d298ffe | 2019-07-28 13:27:11 +0200 | [diff] [blame] | 231 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_4, |
Nico Huber | 1b5e855 | 2021-01-28 21:45:34 +0100 | [diff] [blame] | 232 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_5, |
Aamir Bohra | 9eac039 | 2018-06-30 12:07:04 +0530 | [diff] [blame] | 233 | PCI_DEVICE_ID_INTEL_ICL_GT0_ULT, |
| 234 | PCI_DEVICE_ID_INTEL_ICL_GT0_5_ULT, |
| 235 | PCI_DEVICE_ID_INTEL_ICL_GT1_ULT, |
| 236 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_0, |
| 237 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_1, |
| 238 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_1, |
| 239 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_2, |
| 240 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_2, |
| 241 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_3, |
| 242 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_3, |
| 243 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_4, |
| 244 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_4, |
| 245 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_5, |
| 246 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_5, |
| 247 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_6, |
| 248 | PCI_DEVICE_ID_INTEL_ICL_GT3_ULT, |
Ronak Kanabar | f606a2f | 2019-02-04 16:06:50 +0530 | [diff] [blame] | 249 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_1, |
| 250 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_2, |
| 251 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_1, |
| 252 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_2, |
| 253 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_3, |
| 254 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_4, |
Meera Ravindranath | 970f1a4 | 2019-08-27 16:16:56 +0530 | [diff] [blame] | 255 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_5, |
| 256 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_6, |
Ronak Kanabar | f606a2f | 2019-02-04 16:06:50 +0530 | [diff] [blame] | 257 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_3, |
| 258 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_4, |
| 259 | PCI_DEVICE_ID_INTEL_CML_GT1_ULX_1, |
| 260 | PCI_DEVICE_ID_INTEL_CML_GT2_ULX_1, |
| 261 | PCI_DEVICE_ID_INTEL_CML_GT1_S_1, |
| 262 | PCI_DEVICE_ID_INTEL_CML_GT1_S_2, |
| 263 | PCI_DEVICE_ID_INTEL_CML_GT2_S_1, |
| 264 | PCI_DEVICE_ID_INTEL_CML_GT2_S_2, |
| 265 | PCI_DEVICE_ID_INTEL_CML_GT1_H_1, |
| 266 | PCI_DEVICE_ID_INTEL_CML_GT1_H_2, |
| 267 | PCI_DEVICE_ID_INTEL_CML_GT2_H_1, |
| 268 | PCI_DEVICE_ID_INTEL_CML_GT2_H_2, |
Gaggery Tsai | 12a651c | 2019-12-05 11:23:20 -0800 | [diff] [blame] | 269 | PCI_DEVICE_ID_INTEL_CML_GT2_S_G0, |
| 270 | PCI_DEVICE_ID_INTEL_CML_GT2_S_P0, |
| 271 | PCI_DEVICE_ID_INTEL_CML_GT2_H_R0, |
| 272 | PCI_DEVICE_ID_INTEL_CML_GT2_H_R1, |
Subrata Banik | ae69575 | 2019-11-12 12:47:43 +0530 | [diff] [blame] | 273 | PCI_DEVICE_ID_INTEL_TGL_GT0, |
Jeremy Soller | 191a8d7 | 2021-08-10 14:06:51 -0600 | [diff] [blame] | 274 | PCI_DEVICE_ID_INTEL_TGL_GT1_H_32, |
| 275 | PCI_DEVICE_ID_INTEL_TGL_GT1_H_16, |
Subrata Banik | ae69575 | 2019-11-12 12:47:43 +0530 | [diff] [blame] | 276 | PCI_DEVICE_ID_INTEL_TGL_GT2_ULT, |
| 277 | PCI_DEVICE_ID_INTEL_TGL_GT2_ULX, |
| 278 | PCI_DEVICE_ID_INTEL_TGL_GT3_ULT, |
Ravi Sarawadi | 049ab12 | 2020-07-06 22:04:14 -0700 | [diff] [blame] | 279 | PCI_DEVICE_ID_INTEL_TGL_GT2_ULT_1, |
Tan, Lean Sheng | 2613609 | 2020-01-20 19:13:56 -0800 | [diff] [blame] | 280 | PCI_DEVICE_ID_INTEL_EHL_GT1_1, |
| 281 | PCI_DEVICE_ID_INTEL_EHL_GT2_1, |
| 282 | PCI_DEVICE_ID_INTEL_EHL_GT1_2, |
| 283 | PCI_DEVICE_ID_INTEL_EHL_GT2_2, |
Tan, Lean Sheng | 8d2177b | 2021-05-23 23:06:43 -0700 | [diff] [blame] | 284 | PCI_DEVICE_ID_INTEL_EHL_GT1_2_1, |
Tan, Lean Sheng | 2613609 | 2020-01-20 19:13:56 -0800 | [diff] [blame] | 285 | PCI_DEVICE_ID_INTEL_EHL_GT1_3, |
| 286 | PCI_DEVICE_ID_INTEL_EHL_GT2_3, |
Meera Ravindranath | 3f4af0d | 2020-02-12 16:01:22 +0530 | [diff] [blame] | 287 | PCI_DEVICE_ID_INTEL_JSL_GT1, |
| 288 | PCI_DEVICE_ID_INTEL_JSL_GT2, |
Krishna Prasad Bhat | 166d930 | 2020-07-28 20:46:39 +0530 | [diff] [blame] | 289 | PCI_DEVICE_ID_INTEL_JSL_GT3, |
Krishna Prasad Bhat | 20f580b | 2020-09-17 19:42:39 +0530 | [diff] [blame] | 290 | PCI_DEVICE_ID_INTEL_JSL_GT4, |
Subrata Banik | f672f7f | 2020-08-03 14:29:25 +0530 | [diff] [blame] | 291 | PCI_DEVICE_ID_INTEL_ADL_GT0, |
| 292 | PCI_DEVICE_ID_INTEL_ADL_GT1, |
| 293 | PCI_DEVICE_ID_INTEL_ADL_GT1_1, |
| 294 | PCI_DEVICE_ID_INTEL_ADL_GT1_2, |
| 295 | PCI_DEVICE_ID_INTEL_ADL_GT1_3, |
| 296 | PCI_DEVICE_ID_INTEL_ADL_GT1_4, |
| 297 | PCI_DEVICE_ID_INTEL_ADL_GT1_5, |
| 298 | PCI_DEVICE_ID_INTEL_ADL_GT1_6, |
| 299 | PCI_DEVICE_ID_INTEL_ADL_GT1_7, |
| 300 | PCI_DEVICE_ID_INTEL_ADL_GT1_8, |
| 301 | PCI_DEVICE_ID_INTEL_ADL_GT1_9, |
| 302 | PCI_DEVICE_ID_INTEL_ADL_P_GT2, |
Maulik V Vaghela | 351f1e6 | 2021-05-13 11:34:14 +0530 | [diff] [blame] | 303 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_1, |
Sumeet R Pawnikar | dd4861a | 2021-05-19 15:59:55 +0530 | [diff] [blame] | 304 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_2, |
| 305 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_3, |
Sridhar Siricilla | 3102fd0 | 2021-06-07 23:38:17 +0530 | [diff] [blame] | 306 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_4, |
Meera Ravindranath | 8b60afe | 2021-06-18 11:02:45 +0530 | [diff] [blame] | 307 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_5, |
Maulik V Vaghela | b3d24d3 | 2021-07-02 14:42:03 +0530 | [diff] [blame] | 308 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_6, |
Kane Chen | 3f8bff7 | 2022-01-28 13:58:21 +0800 | [diff] [blame] | 309 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_7, |
| 310 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_8, |
| 311 | PCI_DEVICE_ID_INTEL_ADL_P_GT2_9, |
Subrata Banik | f672f7f | 2020-08-03 14:29:25 +0530 | [diff] [blame] | 312 | PCI_DEVICE_ID_INTEL_ADL_S_GT1, |
Maulik V Vaghela | afb143d | 2021-01-29 22:42:08 +0530 | [diff] [blame] | 313 | PCI_DEVICE_ID_INTEL_ADL_M_GT1, |
Bora Guvendik | 3198848 | 2021-07-23 14:12:57 -0700 | [diff] [blame] | 314 | PCI_DEVICE_ID_INTEL_ADL_M_GT2, |
Selma Bensaid | 326a2c4 | 2021-09-23 18:45:14 -0700 | [diff] [blame] | 315 | PCI_DEVICE_ID_INTEL_ADL_M_GT3, |
Usha P | 5b94cd9 | 2021-11-15 18:40:00 +0530 | [diff] [blame] | 316 | PCI_DEVICE_ID_INTEL_ADL_N_GT1, |
| 317 | PCI_DEVICE_ID_INTEL_ADL_N_GT2, |
| 318 | PCI_DEVICE_ID_INTEL_ADL_N_GT3, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 319 | 0, |
| 320 | }; |
| 321 | |
| 322 | static const struct pci_driver graphics_driver __pci_driver = { |
| 323 | .ops = &graphics_ops, |
| 324 | .vendor = PCI_VENDOR_ID_INTEL, |
| 325 | .devices = pci_device_ids, |
| 326 | }; |