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 | |
John Zhao | eac84ca | 2018-08-13 09:45:37 -0700 | [diff] [blame] | 3 | #include <assert.h> |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 4 | #include <bootmode.h> |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 5 | #include <console/console.h> |
Kyösti Mälkki | 13f6650 | 2019-03-03 08:01:05 +0200 | [diff] [blame] | 6 | #include <device/mmio.h> |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 7 | #include <device/pci.h> |
| 8 | #include <device/pci_ids.h> |
Matt DeVillier | 1eea1dd | 2019-05-02 13:30:11 -0700 | [diff] [blame] | 9 | #include <drivers/intel/gma/i915.h> |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 10 | #include <drivers/intel/gma/libgfxinit.h> |
| 11 | #include <drivers/intel/gma/opregion.h> |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 12 | #include <intelblocks/graphics.h> |
| 13 | #include <soc/pci_devs.h> |
| 14 | |
| 15 | /* SoC Overrides */ |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 16 | __weak void graphics_soc_init(struct device *dev) |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 17 | { |
| 18 | /* |
Jonathan Neuschäfer | 5268b76 | 2018-02-12 12:24:25 +0100 | [diff] [blame] | 19 | * User needs to implement SoC override in case wishes |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 20 | * to perform certain specific graphics initialization |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 21 | */ |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 22 | } |
| 23 | |
Matt DeVillier | 1eea1dd | 2019-05-02 13:30:11 -0700 | [diff] [blame] | 24 | __weak const struct i915_gpu_controller_info * |
Furquan Shaikh | ec3dafd | 2020-04-24 21:53:42 -0700 | [diff] [blame] | 25 | intel_igd_get_controller_info(const struct device *device) |
Matt DeVillier | 1eea1dd | 2019-05-02 13:30:11 -0700 | [diff] [blame] | 26 | { |
| 27 | return NULL; |
| 28 | } |
| 29 | |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 30 | static void gma_init(struct device *const dev) |
| 31 | { |
| 32 | intel_gma_init_igd_opregion(); |
| 33 | |
| 34 | /* SoC specific configuration. */ |
| 35 | graphics_soc_init(dev); |
| 36 | |
| 37 | /* |
| 38 | * GFX PEIM module inside FSP binary is taking care of graphics |
| 39 | * initialization based on RUN_FSP_GOP Kconfig option and input |
| 40 | * VBT file. |
| 41 | * |
| 42 | * In case of non-FSP solution, SoC need to select another |
| 43 | * Kconfig to perform GFX initialization. |
| 44 | */ |
| 45 | if (CONFIG(RUN_FSP_GOP)) |
| 46 | return; |
| 47 | |
Nico Huber | dd59762 | 2020-04-26 19:46:35 +0200 | [diff] [blame^] | 48 | if (!CONFIG(NO_GFX_INIT)) |
| 49 | pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER); |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 50 | |
| 51 | if (CONFIG(MAINBOARD_USE_LIBGFXINIT)) { |
| 52 | if (!acpi_is_wakeup_s3() && display_init_required()) { |
| 53 | int lightup_ok; |
| 54 | gma_gfxinit(&lightup_ok); |
| 55 | gfx_set_init_done(lightup_ok); |
| 56 | } |
| 57 | } else { |
| 58 | /* Initialize PCI device, load/execute BIOS Option ROM */ |
| 59 | pci_dev_init(dev); |
| 60 | } |
| 61 | } |
| 62 | |
Furquan Shaikh | 7536a39 | 2020-04-24 21:59:21 -0700 | [diff] [blame] | 63 | static void gma_generate_ssdt(const struct device *device) |
Matt DeVillier | 1eea1dd | 2019-05-02 13:30:11 -0700 | [diff] [blame] | 64 | { |
| 65 | const struct i915_gpu_controller_info *gfx = intel_igd_get_controller_info(device); |
| 66 | |
| 67 | if (gfx) |
| 68 | drivers_intel_gma_displays_ssdt_generate(gfx); |
| 69 | } |
| 70 | |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 71 | static int is_graphics_disabled(struct device *dev) |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 72 | { |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 73 | /* Check if Graphics PCI device is disabled */ |
John Zhao | eac84ca | 2018-08-13 09:45:37 -0700 | [diff] [blame] | 74 | if (!dev || !dev->enabled) |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 75 | return 1; |
| 76 | |
| 77 | return 0; |
| 78 | } |
| 79 | |
| 80 | static uintptr_t graphics_get_bar(struct device *dev, unsigned long index) |
| 81 | { |
| 82 | struct resource *gm_res; |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 83 | |
| 84 | gm_res = find_resource(dev, index); |
| 85 | if (!gm_res) |
| 86 | return 0; |
| 87 | |
| 88 | return gm_res->base; |
| 89 | } |
| 90 | |
| 91 | uintptr_t graphics_get_memory_base(void) |
| 92 | { |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 93 | uintptr_t memory_base; |
Kyösti Mälkki | 71756c21 | 2019-07-12 13:10:19 +0300 | [diff] [blame] | 94 | struct device *dev = pcidev_path_on_root(SA_DEVFN_IGD); |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 95 | |
| 96 | if (is_graphics_disabled(dev)) |
| 97 | return 0; |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 98 | /* |
| 99 | * GFX PCI config space offset 0x18 know as Graphics |
| 100 | * Memory Range Address (GMADR) |
| 101 | */ |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 102 | memory_base = graphics_get_bar(dev, PCI_BASE_ADDRESS_2); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 103 | if (!memory_base) |
Keith Short | 15588b0 | 2019-05-09 11:40:34 -0600 | [diff] [blame] | 104 | die_with_post_code(POST_HW_INIT_FAILURE, |
| 105 | "GMADR is not programmed!"); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 106 | |
| 107 | return memory_base; |
| 108 | } |
| 109 | |
| 110 | static uintptr_t graphics_get_gtt_base(void) |
| 111 | { |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 112 | static uintptr_t gtt_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 | die("IGD is disabled!"); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 117 | /* |
| 118 | * GFX PCI config space offset 0x10 know as Graphics |
| 119 | * Translation Table Memory Mapped Range Address |
| 120 | * (GTTMMADR) |
| 121 | */ |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 122 | if (!gtt_base) { |
Subrata Banik | 64e6680 | 2019-06-13 22:11:46 +0530 | [diff] [blame] | 123 | gtt_base = graphics_get_bar(dev, PCI_BASE_ADDRESS_0); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 124 | if (!gtt_base) |
Keith Short | 15588b0 | 2019-05-09 11:40:34 -0600 | [diff] [blame] | 125 | die_with_post_code(POST_HW_INIT_FAILURE, |
| 126 | "GTTMMADR is not programmed!"); |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 127 | } |
| 128 | return gtt_base; |
| 129 | } |
| 130 | |
| 131 | uint32_t graphics_gtt_read(unsigned long reg) |
| 132 | { |
| 133 | return read32((void *)(graphics_get_gtt_base() + reg)); |
| 134 | } |
| 135 | |
| 136 | void graphics_gtt_write(unsigned long reg, uint32_t data) |
| 137 | { |
| 138 | write32((void *)(graphics_get_gtt_base() + reg), data); |
| 139 | } |
| 140 | |
| 141 | void graphics_gtt_rmw(unsigned long reg, uint32_t andmask, uint32_t ormask) |
| 142 | { |
| 143 | uint32_t val = graphics_gtt_read(reg); |
| 144 | val &= andmask; |
| 145 | val |= ormask; |
| 146 | graphics_gtt_write(reg, val); |
| 147 | } |
| 148 | |
| 149 | static const struct device_operations graphics_ops = { |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 150 | .read_resources = pci_dev_read_resources, |
| 151 | .set_resources = pci_dev_set_resources, |
| 152 | .enable_resources = pci_dev_enable_resources, |
Nico Huber | 826094f | 2020-04-26 19:24:00 +0200 | [diff] [blame] | 153 | .init = gma_init, |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 154 | .ops_pci = &pci_dev_ops_pci, |
Karthikeyan Ramasubramanian | 0e971e1 | 2020-01-09 11:32:16 -0700 | [diff] [blame] | 155 | #if CONFIG(HAVE_ACPI_TABLES) |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 156 | .acpi_fill_ssdt = gma_generate_ssdt, |
Karthikeyan Ramasubramanian | 0e971e1 | 2020-01-09 11:32:16 -0700 | [diff] [blame] | 157 | #endif |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 158 | .scan_bus = scan_generic_bus, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 159 | }; |
| 160 | |
| 161 | static const unsigned short pci_device_ids[] = { |
| 162 | PCI_DEVICE_ID_INTEL_APL_IGD_HD_505, |
| 163 | PCI_DEVICE_ID_INTEL_APL_IGD_HD_500, |
| 164 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_1, |
| 165 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_2, |
| 166 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_3, |
| 167 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULX_4, |
| 168 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_1, |
| 169 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_2, |
| 170 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_3, |
| 171 | PCI_DEVICE_ID_INTEL_CNL_GT2_ULT_4, |
| 172 | PCI_DEVICE_ID_INTEL_GLK_IGD, |
| 173 | PCI_DEVICE_ID_INTEL_GLK_IGD_EU12, |
Lijian Zhao | 34745f6 | 2019-02-15 05:36:50 -0800 | [diff] [blame] | 174 | PCI_DEVICE_ID_INTEL_WHL_GT1_ULT_1, |
Krzysztof Sywula | bf7ad37 | 2018-07-17 10:45:21 -0700 | [diff] [blame] | 175 | PCI_DEVICE_ID_INTEL_WHL_GT2_ULT_1, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 176 | PCI_DEVICE_ID_INTEL_KBL_GT1_SULTM, |
Maxim Polyakov | 8595469 | 2019-09-23 16:08:41 +0300 | [diff] [blame] | 177 | PCI_DEVICE_ID_INTEL_KBL_GT1_SHALM_1, |
| 178 | PCI_DEVICE_ID_INTEL_KBL_GT1_SHALM_2, |
| 179 | PCI_DEVICE_ID_INTEL_KBL_GT1_SSRVM, |
| 180 | PCI_DEVICE_ID_INTEL_KBL_GT1F_DT2, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 181 | PCI_DEVICE_ID_INTEL_KBL_GT2_SULXM, |
| 182 | PCI_DEVICE_ID_INTEL_KBL_GT2_SULTM, |
| 183 | PCI_DEVICE_ID_INTEL_KBL_GT2_SULTMR, |
Maxim Polyakov | 8595469 | 2019-09-23 16:08:41 +0300 | [diff] [blame] | 184 | PCI_DEVICE_ID_INTEL_KBL_GT2_SSRVM, |
| 185 | PCI_DEVICE_ID_INTEL_KBL_GT2_SWSTM, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 186 | PCI_DEVICE_ID_INTEL_KBL_GT2_SHALM, |
V Sowmya | acc2a48 | 2018-01-23 15:27:23 +0530 | [diff] [blame] | 187 | PCI_DEVICE_ID_INTEL_KBL_GT2_DT2P2, |
Maxim Polyakov | 8595469 | 2019-09-23 16:08:41 +0300 | [diff] [blame] | 188 | PCI_DEVICE_ID_INTEL_KBL_GT2F_SULTM, |
| 189 | PCI_DEVICE_ID_INTEL_KBL_GT3E_SULTM_1, |
| 190 | PCI_DEVICE_ID_INTEL_KBL_GT3E_SULTM_2, |
| 191 | PCI_DEVICE_ID_INTEL_KBL_GT4_SHALM, |
Gaggery Tsai | 8aee7f7 | 2018-08-03 11:40:55 -0700 | [diff] [blame] | 192 | PCI_DEVICE_ID_INTEL_AML_GT2_ULX, |
Maxim Polyakov | 9563681 | 2019-09-20 22:06:57 +0300 | [diff] [blame] | 193 | PCI_DEVICE_ID_INTEL_SKL_GT1F_DT2, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 194 | PCI_DEVICE_ID_INTEL_SKL_GT1_SULTM, |
Maxim Polyakov | 46e6852 | 2019-02-25 10:46:18 +0300 | [diff] [blame] | 195 | PCI_DEVICE_ID_INTEL_SKL_GT2_DT2P1, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 196 | PCI_DEVICE_ID_INTEL_SKL_GT2_SULXM, |
| 197 | PCI_DEVICE_ID_INTEL_SKL_GT2_SULTM, |
| 198 | PCI_DEVICE_ID_INTEL_SKL_GT2_SHALM, |
| 199 | PCI_DEVICE_ID_INTEL_SKL_GT2_SWKSM, |
Maxim Polyakov | 9563681 | 2019-09-20 22:06:57 +0300 | [diff] [blame] | 200 | PCI_DEVICE_ID_INTEL_SKL_GT3_SULTM, |
| 201 | PCI_DEVICE_ID_INTEL_SKL_GT3E_SULTM_1, |
| 202 | PCI_DEVICE_ID_INTEL_SKL_GT3E_SULTM_2, |
| 203 | PCI_DEVICE_ID_INTEL_SKL_GT3FE_SSRVM, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 204 | PCI_DEVICE_ID_INTEL_SKL_GT4_SHALM, |
Maxim Polyakov | 9563681 | 2019-09-20 22:06:57 +0300 | [diff] [blame] | 205 | PCI_DEVICE_ID_INTEL_SKL_GT4E_SWSTM, |
praveen hodagatta pranesh | e26c4a4 | 2018-09-20 03:49:45 +0800 | [diff] [blame] | 206 | PCI_DEVICE_ID_INTEL_CFL_H_GT2, |
Nico Huber | ff3c964 | 2019-05-14 13:18:05 +0200 | [diff] [blame] | 207 | PCI_DEVICE_ID_INTEL_CFL_H_XEON_GT2, |
Lean Sheng Tan | 38c3ff7 | 2019-05-27 13:06:35 +0800 | [diff] [blame] | 208 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_1, |
| 209 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_2, |
| 210 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_3, |
Felix Singer | d298ffe | 2019-07-28 13:27:11 +0200 | [diff] [blame] | 211 | PCI_DEVICE_ID_INTEL_CFL_S_GT2_4, |
Christian Walter | 19b963c | 2019-12-09 15:07:13 +0100 | [diff] [blame] | 212 | PCI_DEVICE_ID_INTEL_CFL_U_GT2, |
Aamir Bohra | 9eac039 | 2018-06-30 12:07:04 +0530 | [diff] [blame] | 213 | PCI_DEVICE_ID_INTEL_ICL_GT0_ULT, |
| 214 | PCI_DEVICE_ID_INTEL_ICL_GT0_5_ULT, |
| 215 | PCI_DEVICE_ID_INTEL_ICL_GT1_ULT, |
| 216 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_0, |
| 217 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_1, |
| 218 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_1, |
| 219 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_2, |
| 220 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_2, |
| 221 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_3, |
| 222 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_3, |
| 223 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_4, |
| 224 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_4, |
| 225 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_5, |
| 226 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULT_5, |
| 227 | PCI_DEVICE_ID_INTEL_ICL_GT2_ULX_6, |
| 228 | PCI_DEVICE_ID_INTEL_ICL_GT3_ULT, |
Ronak Kanabar | f606a2f | 2019-02-04 16:06:50 +0530 | [diff] [blame] | 229 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_1, |
| 230 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_2, |
| 231 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_1, |
| 232 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_2, |
| 233 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_3, |
| 234 | PCI_DEVICE_ID_INTEL_CML_GT1_ULT_4, |
Meera Ravindranath | 970f1a4 | 2019-08-27 16:16:56 +0530 | [diff] [blame] | 235 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_5, |
| 236 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_6, |
Ronak Kanabar | f606a2f | 2019-02-04 16:06:50 +0530 | [diff] [blame] | 237 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_3, |
| 238 | PCI_DEVICE_ID_INTEL_CML_GT2_ULT_4, |
| 239 | PCI_DEVICE_ID_INTEL_CML_GT1_ULX_1, |
| 240 | PCI_DEVICE_ID_INTEL_CML_GT2_ULX_1, |
| 241 | PCI_DEVICE_ID_INTEL_CML_GT1_S_1, |
| 242 | PCI_DEVICE_ID_INTEL_CML_GT1_S_2, |
| 243 | PCI_DEVICE_ID_INTEL_CML_GT2_S_1, |
| 244 | PCI_DEVICE_ID_INTEL_CML_GT2_S_2, |
| 245 | PCI_DEVICE_ID_INTEL_CML_GT1_H_1, |
| 246 | PCI_DEVICE_ID_INTEL_CML_GT1_H_2, |
| 247 | PCI_DEVICE_ID_INTEL_CML_GT2_H_1, |
| 248 | PCI_DEVICE_ID_INTEL_CML_GT2_H_2, |
Gaggery Tsai | 12a651c | 2019-12-05 11:23:20 -0800 | [diff] [blame] | 249 | PCI_DEVICE_ID_INTEL_CML_GT2_S_G0, |
| 250 | PCI_DEVICE_ID_INTEL_CML_GT2_S_P0, |
| 251 | PCI_DEVICE_ID_INTEL_CML_GT2_H_R0, |
| 252 | PCI_DEVICE_ID_INTEL_CML_GT2_H_R1, |
Subrata Banik | ae69575 | 2019-11-12 12:47:43 +0530 | [diff] [blame] | 253 | PCI_DEVICE_ID_INTEL_TGL_GT0, |
| 254 | PCI_DEVICE_ID_INTEL_TGL_GT2_ULT, |
| 255 | PCI_DEVICE_ID_INTEL_TGL_GT2_ULX, |
| 256 | PCI_DEVICE_ID_INTEL_TGL_GT3_ULT, |
Tan, Lean Sheng | 2613609 | 2020-01-20 19:13:56 -0800 | [diff] [blame] | 257 | PCI_DEVICE_ID_INTEL_EHL_GT1_1, |
| 258 | PCI_DEVICE_ID_INTEL_EHL_GT2_1, |
| 259 | PCI_DEVICE_ID_INTEL_EHL_GT1_2, |
| 260 | PCI_DEVICE_ID_INTEL_EHL_GT2_2, |
| 261 | PCI_DEVICE_ID_INTEL_EHL_GT1_3, |
| 262 | PCI_DEVICE_ID_INTEL_EHL_GT2_3, |
Meera Ravindranath | 3f4af0d | 2020-02-12 16:01:22 +0530 | [diff] [blame] | 263 | PCI_DEVICE_ID_INTEL_JSL_GT1, |
| 264 | PCI_DEVICE_ID_INTEL_JSL_GT2, |
Subrata Banik | fa7cc78 | 2017-11-27 18:23:36 +0530 | [diff] [blame] | 265 | 0, |
| 266 | }; |
| 267 | |
| 268 | static const struct pci_driver graphics_driver __pci_driver = { |
| 269 | .ops = &graphics_ops, |
| 270 | .vendor = PCI_VENDOR_ID_INTEL, |
| 271 | .devices = pci_device_ids, |
| 272 | }; |