blob: 181d901705ce21ac1903d30796c586f3b6504a72 [file] [log] [blame]
Stefan Reinauer00636b02012-04-04 00:08:51 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2011 Chromium OS Authors
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#include <arch/io.h>
21#include <console/console.h>
22#include <delay.h>
23#include <device/device.h>
24#include <device/pci.h>
25#include <device/pci_ids.h>
26
27#include "chip.h"
28#include "sandybridge.h"
29
Duncan Lauriedd585b82012-04-09 12:05:18 -070030struct gt_powermeter {
31 u16 reg;
32 u32 value;
33};
34
35struct gt_powermeter snb_pm_gt1[] = {
36 { 0xa200, 0xcc000000 },
37 { 0xa204, 0x07000040 },
38 { 0xa208, 0x0000fe00 },
39 { 0xa20c, 0x00000000 },
40 { 0xa210, 0x17000000 },
41 { 0xa214, 0x00000021 },
42 { 0xa218, 0x0817fe19 },
43 { 0xa21c, 0x00000000 },
44 { 0xa220, 0x00000000 },
45 { 0xa224, 0xcc000000 },
46 { 0xa228, 0x07000040 },
47 { 0xa22c, 0x0000fe00 },
48 { 0xa230, 0x00000000 },
49 { 0xa234, 0x17000000 },
50 { 0xa238, 0x00000021 },
51 { 0xa23c, 0x0817fe19 },
52 { 0xa240, 0x00000000 },
53 { 0xa244, 0x00000000 },
54 { 0xa248, 0x8000421e },
55 { 0 }
56};
57
58struct gt_powermeter snb_pm_gt2[] = {
59 { 0xa200, 0x330000a6 },
60 { 0xa204, 0x402d0031 },
61 { 0xa208, 0x00165f83 },
62 { 0xa20c, 0xf1000000 },
63 { 0xa210, 0x00000000 },
64 { 0xa214, 0x00160016 },
65 { 0xa218, 0x002a002b },
66 { 0xa21c, 0x00000000 },
67 { 0xa220, 0x00000000 },
68 { 0xa224, 0x330000a6 },
69 { 0xa228, 0x402d0031 },
70 { 0xa22c, 0x00165f83 },
71 { 0xa230, 0xf1000000 },
72 { 0xa234, 0x00000000 },
73 { 0xa238, 0x00160016 },
74 { 0xa23c, 0x002a002b },
75 { 0xa240, 0x00000000 },
76 { 0xa244, 0x00000000 },
77 { 0xa248, 0x8000421e },
78 { 0 }
79};
80
81struct gt_powermeter ivb_pm_gt1[] = {
82 { 0xa800, 0x10000000 },
83 { 0xa804, 0x00033800 },
84 { 0xa808, 0x00000902 },
85 { 0xa80c, 0x0c002f00 },
86 { 0xa810, 0x12000400 },
87 { 0xa814, 0x00000000 },
88 { 0xa818, 0x00d20800 },
89 { 0xa81c, 0x00000002 },
90 { 0xa820, 0x03004b02 },
91 { 0xa824, 0x00000600 },
92 { 0xa828, 0x07000773 },
93 { 0xa82c, 0x00000000 },
94 { 0xa830, 0x00010032 },
95 { 0xa834, 0x1520040d },
96 { 0xa838, 0x00020105 },
97 { 0xa83c, 0x00083700 },
98 { 0xa840, 0x0000151d },
99 { 0xa844, 0x00000000 },
100 { 0xa848, 0x20001b00 },
101 { 0xa84c, 0x0a000010 },
102 { 0xa850, 0x00000000 },
103 { 0xa854, 0x00000008 },
104 { 0xa858, 0x00000008 },
105 { 0xa85c, 0x00000000 },
106 { 0xa860, 0x00020000 },
107 { 0xa248, 0x0000221e },
108 { 0xa900, 0x00000000 },
109 { 0xa904, 0x00003500 },
110 { 0xa908, 0x00000000 },
111 { 0xa90c, 0x0c000000 },
112 { 0xa910, 0x12000500 },
113 { 0xa914, 0x00000000 },
114 { 0xa918, 0x00b20000 },
115 { 0xa91c, 0x00000000 },
116 { 0xa920, 0x08004b02 },
117 { 0xa924, 0x00000200 },
118 { 0xa928, 0x07000820 },
119 { 0xa92c, 0x00000000 },
120 { 0xa930, 0x00030000 },
121 { 0xa934, 0x050f020d },
122 { 0xa938, 0x00020300 },
123 { 0xa93c, 0x00903900 },
124 { 0xa940, 0x00000000 },
125 { 0xa944, 0x00000000 },
126 { 0xa948, 0x20001b00 },
127 { 0xa94c, 0x0a000010 },
128 { 0xa950, 0x00000000 },
129 { 0xa954, 0x00000008 },
130 { 0xa960, 0x00110000 },
131 { 0xaa3c, 0x00003900 },
132 { 0xaa54, 0x00000008 },
133 { 0xaa60, 0x00110000 },
134 { 0 }
135};
136
137struct gt_powermeter ivb_pm_gt2[] = {
138 { 0xa800, 0x20000000 },
139 { 0xa804, 0x000e3800 },
140 { 0xa808, 0x00000806 },
141 { 0xa80c, 0x0c002f00 },
142 { 0xa810, 0x0c000800 },
143 { 0xa814, 0x00000000 },
144 { 0xa818, 0x00d20d00 },
145 { 0xa81c, 0x000000ff },
146 { 0xa820, 0x03004b02 },
147 { 0xa824, 0x00000600 },
148 { 0xa828, 0x07000773 },
149 { 0xa82c, 0x00000000 },
150 { 0xa830, 0x00020032 },
151 { 0xa834, 0x1520040d },
152 { 0xa838, 0x00020105 },
153 { 0xa83c, 0x00083700 },
154 { 0xa840, 0x000016ff },
155 { 0xa844, 0x00000000 },
156 { 0xa848, 0xff000000 },
157 { 0xa84c, 0x0a000010 },
158 { 0xa850, 0x00000004 },
159 { 0xa854, 0x00000008 },
160 { 0xa858, 0x00000018 },
161 { 0xa85c, 0x00000000 },
162 { 0xa860, 0x00020000 },
163 { 0xa248, 0x0000221e },
164 { 0xa900, 0x00000000 },
165 { 0xa904, 0x00003800 },
166 { 0xa908, 0x00000000 },
167 { 0xa90c, 0x0c000000 },
168 { 0xa910, 0x12000500 },
169 { 0xa914, 0x00000000 },
170 { 0xa918, 0x00b20000 },
171 { 0xa91c, 0x00000000 },
172 { 0xa920, 0x08004b02 },
173 { 0xa924, 0x00000200 },
174 { 0xa928, 0x07000820 },
175 { 0xa92c, 0x00000000 },
176 { 0xa930, 0x00030000 },
177 { 0xa934, 0x050f020d },
178 { 0xa938, 0x00020300 },
179 { 0xa93c, 0x00903900 },
180 { 0xa940, 0x00000000 },
181 { 0xa944, 0x00000000 },
182 { 0xa948, 0x20001b00 },
183 { 0xa94c, 0x0a000010 },
184 { 0xa950, 0x00000000 },
185 { 0xa954, 0x00000008 },
186 { 0xa960, 0x00110000 },
187 { 0xaa3c, 0x00003900 },
188 { 0xaa54, 0x00000008 },
189 { 0xaa60, 0x00110000 },
190 { 0 }
191};
192
Stefan Reinauer00636b02012-04-04 00:08:51 +0200193/* some vga option roms are used for several chipsets but they only have one
194 * PCI ID in their header. If we encounter such an option rom, we need to do
195 * the mapping ourselfes
196 */
197
198u32 map_oprom_vendev(u32 vendev)
199{
200 u32 new_vendev=vendev;
201
202 switch (vendev) {
Martin Rothe9dfdd92012-04-26 16:04:18 -0600203 case 0x80860102: /* GT1 Desktop */
204 case 0x8086010a: /* GT1 Server */
205 case 0x80860112: /* GT2 Desktop */
206 case 0x80860116: /* GT2 Mobile */
207 case 0x80860122: /* GT2 Desktop >=1.3GHz */
208 case 0x80860126: /* GT2 Mobile >=1.3GHz */
209 case 0x80860166: /* IVB */
210 new_vendev=0x80860106; /* GT1 Mobile */
Stefan Reinauer00636b02012-04-04 00:08:51 +0200211 break;
212 }
213
214 return new_vendev;
215}
216
217static struct resource *gtt_res = NULL;
218
219static inline u32 gtt_read(u32 reg)
220{
221 return read32(gtt_res->base + reg);
222}
223
224static inline void gtt_write(u32 reg, u32 data)
225{
226 write32(gtt_res->base + reg, data);
227}
228
Duncan Lauriedd585b82012-04-09 12:05:18 -0700229static inline void gtt_write_powermeter(struct gt_powermeter *pm)
230{
231 for (; pm && pm->reg; pm++)
232 gtt_write(pm->reg, pm->value);
233}
234
Stefan Reinauer00636b02012-04-04 00:08:51 +0200235#define GTT_RETRY 1000
236static int gtt_poll(u32 reg, u32 mask, u32 value)
237{
238 unsigned try = GTT_RETRY;
239 u32 data;
240
241 while (try--) {
242 data = gtt_read(reg);
243 if ((data & mask) == value)
244 return 1;
245 udelay(10);
246 }
247
248 printk(BIOS_ERR, "GT init timeout\n");
249 return 0;
250}
251
252static void gma_pm_init_pre_vbios(struct device *dev)
253{
254 u32 reg32;
255
256 printk(BIOS_DEBUG, "GT Power Management Init\n");
257
258 gtt_res = find_resource(dev, PCI_BASE_ADDRESS_0);
259 if (!gtt_res || !gtt_res->base)
260 return;
261
262 if (bridge_silicon_revision() < IVB_STEP_C0) {
263 /* 1: Enable force wake */
264 gtt_write(0xa18c, 0x00000001);
265 if (!gtt_poll(0x130090, (1 << 0), (1 << 0)))
266 return;
267 } else {
268 gtt_write(0xa180, 1 << 5);
269 gtt_write(0xa188, 0xffff0001);
Duncan Lauriedd585b82012-04-09 12:05:18 -0700270 if (!gtt_poll(0x130040, (1 << 0), (1 << 0)))
Stefan Reinauer00636b02012-04-04 00:08:51 +0200271 return;
272 }
273
274 if ((bridge_silicon_revision() & BASE_REV_MASK) == BASE_REV_SNB) {
275 /* 1d: Set GTT+0x42004 [15:14]=11 (SnB C1+) */
276 reg32 = gtt_read(0x42004);
277 reg32 |= (1 << 14) | (1 << 15);
278 gtt_write(0x42004, reg32);
279 }
280
281 if (bridge_silicon_revision() >= IVB_STEP_A0) {
282 /* Display Reset Acknowledge Settings */
Stefan Reinauer00636b02012-04-04 00:08:51 +0200283 reg32 = gtt_read(0x45010);
284 reg32 |= (1 << 1) | (1 << 0);
285 gtt_write(0x45010, reg32);
286 }
287
288 /* 2: Get GT SKU from GTT+0x911c[13] */
Duncan Lauriedd585b82012-04-09 12:05:18 -0700289 reg32 = gtt_read(0x911c);
Stefan Reinauer00636b02012-04-04 00:08:51 +0200290 if ((bridge_silicon_revision() & BASE_REV_MASK) == BASE_REV_SNB) {
Stefan Reinauer00636b02012-04-04 00:08:51 +0200291 if (reg32 & (1 << 13)) {
Duncan Lauriedd585b82012-04-09 12:05:18 -0700292 printk(BIOS_DEBUG, "SNB GT1 Power Meter Weights\n");
293 gtt_write_powermeter(snb_pm_gt1);
Stefan Reinauer00636b02012-04-04 00:08:51 +0200294 } else {
Duncan Lauriedd585b82012-04-09 12:05:18 -0700295 printk(BIOS_DEBUG, "SNB GT2 Power Meter Weights\n");
296 gtt_write_powermeter(snb_pm_gt2);
Stefan Reinauer00636b02012-04-04 00:08:51 +0200297 }
298 } else {
Duncan Lauriedd585b82012-04-09 12:05:18 -0700299 u32 unit = MCHBAR32(0x5938) & 0xf;
300 u32 tdp = MCHBAR32(0x5930) & 0x7fff;
301 tdp /= (1 << unit);
302
303 if ((tdp <= 17) && !(reg32 & (1 << 13))) {
304 /* <=17W ULV and GT2 SKU */
305 printk(BIOS_DEBUG, "IVB GT2 Power Meter Weights\n");
306 gtt_write_powermeter(ivb_pm_gt2);
307 } else {
308 /* GT1 SKU */
309 printk(BIOS_DEBUG, "IVB GT1 Power Meter Weights\n");
310 gtt_write_powermeter(ivb_pm_gt1);
311 }
Stefan Reinauer00636b02012-04-04 00:08:51 +0200312 }
313
314 /* 3: Gear ratio map */
315 gtt_write(0xa004, 0x00000010);
316
317 /* 4: GFXPAUSE */
318 gtt_write(0xa000, 0x00070020);
319
320 /* 5: Dynamic EU trip control */
321 gtt_write(0xa080, 0x00000004);
322
323 /* 6: ECO bits */
324 reg32 = gtt_read(0xa180);
325 reg32 |= (1 << 26) | (1 << 31);
326 /* (bit 20=1 for SNB step D1+ / IVB A0+) */
327 if (bridge_silicon_revision() >= SNB_STEP_D1)
328 reg32 |= (1 << 20);
329 gtt_write(0xa180, reg32);
330
331 /* 6a: for SnB step D2+ only */
332 if (((bridge_silicon_revision() & BASE_REV_MASK) == BASE_REV_SNB) &&
333 (bridge_silicon_revision() >= SNB_STEP_D2)) {
334 reg32 = gtt_read(0x9400);
335 reg32 |= (1 << 7);
336 gtt_write(0x9400, reg32);
337
338 reg32 = gtt_read(0x941c);
339 reg32 &= 0xf;
340 reg32 |= (1 << 1);
341 gtt_write(0x941c, reg32);
342 if (!gtt_poll(0x941c, (1 << 1), (0 << 1)))
343 return;
344 }
345
346 if ((bridge_silicon_revision() & BASE_REV_MASK) == BASE_REV_IVB) {
347 reg32 = gtt_read(0x907c);
348 reg32 |= (1 << 16);
349 gtt_write(0x907c, reg32);
350
351 /* 6b: Clocking reset controls */
352 gtt_write(0x9424, 0x00000001);
353 } else {
354 /* 6b: Clocking reset controls */
355 gtt_write(0x9424, 0x00000000);
356 }
357
358 /* 7 */
359 if (!gtt_poll(0x138124, (1 << 31), (0 << 31)))
360 return;
361 gtt_write(0x138128, 0x00000029); /* Mailbox Data */
362 gtt_write(0x138124, 0x80000004); /* Mailbox Cmd for RC6 VID */
363 if (!gtt_poll(0x138124, (1 << 31), (0 << 31)))
364 return;
365 gtt_write(0x138124, 0x8000000a); /* Mailbox Cmd to clear RC6 count */
366 if (!gtt_poll(0x138124, (1 << 31), (0 << 31)))
367 return;
368
369 /* 8 */
370 gtt_write(0xa090, 0x00000000); /* RC Control */
371 gtt_write(0xa098, 0x03e80000); /* RC1e Wake Rate Limit */
372 gtt_write(0xa09c, 0x0028001e); /* RC6/6p Wake Rate Limit */
373 gtt_write(0xa0a0, 0x0000001e); /* RC6pp Wake Rate Limit */
374 gtt_write(0xa0a8, 0x0001e848); /* RC Evaluation Interval */
375 gtt_write(0xa0ac, 0x00000019); /* RC Idle Hysteresis */
376
377 /* 9 */
378 gtt_write(0x2054, 0x0000000a); /* Render Idle Max Count */
379 gtt_write(0x12054,0x0000000a); /* Video Idle Max Count */
380 gtt_write(0x22054,0x0000000a); /* Blitter Idle Max Count */
381
382 /* 10 */
383 gtt_write(0xa0b0, 0x00000000); /* Unblock Ack to Busy */
384 gtt_write(0xa0b4, 0x000003e8); /* RC1e Threshold */
385 gtt_write(0xa0b8, 0x0000c350); /* RC6 Threshold */
386 gtt_write(0xa0bc, 0x000186a0); /* RC6p Threshold */
387 gtt_write(0xa0c0, 0x0000fa00); /* RC6pp Threshold */
388
389 /* 11 */
390 gtt_write(0xa010, 0x000f4240); /* RP Down Timeout */
391 gtt_write(0xa014, 0x12060000); /* RP Interrupt Limits */
392 gtt_write(0xa02c, 0x00015f90); /* RP Up Threshold */
393 gtt_write(0xa030, 0x000186a0); /* RP Down Threshold */
394 gtt_write(0xa068, 0x000186a0); /* RP Up EI */
395 gtt_write(0xa06c, 0x000493e0); /* RP Down EI */
396 gtt_write(0xa070, 0x0000000a); /* RP Idle Hysteresis */
397
398 /* 11a: Enable Render Standby (RC6) */
399 if ((bridge_silicon_revision() & BASE_REV_MASK) == BASE_REV_IVB) {
400 /* on IVB: also enable DeepRenderStandby */
401 gtt_write(0xa090, 0x88060000); /* HW RC Control */
402 } else {
403 gtt_write(0xa090, 0x88040000); /* HW RC Control */
404 }
405
406 /* 12: Normal Frequency Request */
407 /* RPNFREQ_VAL comes from MCHBAR 0x5998 23:16 (8 bits!? use 7) */
408 reg32 = MCHBAR32(0x5998);
409 reg32 >>= 16;
410 reg32 &= 0xef;
411 reg32 <<= 25;
412 gtt_write(0xa008, reg32);
413
414 /* 13: RP Control */
415 gtt_write(0xa024, 0x00000592);
416
417 /* 14: Enable PM Interrupts */
418 gtt_write(0x4402c, 0x03000076);
419
420 /* Clear 0x6c024 [8:6] */
421 reg32 = gtt_read(0x6c024);
422 reg32 &= ~0x000001c0;
423 gtt_write(0x6c024, reg32);
424}
425
426static void gma_pm_init_post_vbios(struct device *dev)
427{
428 struct northbridge_intel_sandybridge_config *conf = dev->chip_info;
429 u32 reg32;
430
431 printk(BIOS_DEBUG, "GT Power Management Init (post VBIOS)\n");
432
433 /* 15: Deassert Force Wake */
Duncan Lauriedd585b82012-04-09 12:05:18 -0700434 if (bridge_silicon_revision() < IVB_STEP_C0) {
435 gtt_write(0xa18c, gtt_read(0xa18c) & ~1);
436 if (!gtt_poll(0x130090, (1 << 0), (0 << 0))) {
437 return;
438 }
439 } else {
440 gtt_write(0xa188, 0x1fffe);
441 if (!gtt_poll(0x130040, (1 << 0), (0 << 0))) {
442 return;
443 }
444 gtt_write(0xa188, gtt_read(0xa188) | 1);
445 }
Stefan Reinauer00636b02012-04-04 00:08:51 +0200446
447 /* 16: SW RC Control */
448 gtt_write(0xa094, 0x00060000);
449
450 /* Setup Digital Port Hotplug */
451 reg32 = gtt_read(0xc4030);
452 if (!reg32) {
453 reg32 = (conf->gpu_dp_b_hotplug & 0x7) << 2;
454 reg32 |= (conf->gpu_dp_c_hotplug & 0x7) << 10;
455 reg32 |= (conf->gpu_dp_d_hotplug & 0x7) << 18;
456 gtt_write(0xc4030, reg32);
457 }
458
459 /* Setup Panel Power On Delays */
460 reg32 = gtt_read(0xc7208);
461 if (!reg32) {
462 reg32 = (conf->gpu_panel_port_select & 0x3) << 30;
463 reg32 |= (conf->gpu_panel_power_up_delay & 0x1fff) << 16;
464 reg32 |= (conf->gpu_panel_power_backlight_on_delay & 0x1fff);
465 gtt_write(0xc7208, reg32);
466 }
467
468 /* Setup Panel Power Off Delays */
469 reg32 = gtt_read(0xc720c);
470 if (!reg32) {
471 reg32 = (conf->gpu_panel_power_down_delay & 0x1fff) << 16;
472 reg32 |= (conf->gpu_panel_power_backlight_off_delay & 0x1fff);
473 gtt_write(0xc720c, reg32);
474 }
475
476 /* Setup Panel Power Cycle Delay */
477 if (conf->gpu_panel_power_cycle_delay) {
478 reg32 = gtt_read(0xc7210);
479 reg32 &= ~0xff;
480 reg32 |= conf->gpu_panel_power_cycle_delay & 0xff;
481 gtt_write(0xc7210, reg32);
482 }
Duncan Lauriedd585b82012-04-09 12:05:18 -0700483
484 /* Enable Backlight if needed */
485 if (conf->gpu_cpu_backlight) {
486 gtt_write(0x48250, (1 << 31));
487 gtt_write(0x48254, conf->gpu_cpu_backlight);
488 }
489 if (conf->gpu_pch_backlight) {
490 gtt_write(0xc8250, (1 << 31));
491 gtt_write(0xc8254, conf->gpu_pch_backlight);
492 }
Stefan Reinauer00636b02012-04-04 00:08:51 +0200493}
494
495static void gma_func0_init(struct device *dev)
496{
497 u32 reg32;
498
499 /* IGD needs to be Bus Master */
500 reg32 = pci_read_config32(dev, PCI_COMMAND);
501 reg32 |= PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY | PCI_COMMAND_IO;
502 pci_write_config32(dev, PCI_COMMAND, reg32);
503
504 /* Init graphics power management */
505 gma_pm_init_pre_vbios(dev);
506
507 /* PCI Init, will run VBIOS */
508 pci_dev_init(dev);
509
510 /* Post VBIOS init */
511 gma_pm_init_post_vbios(dev);
512}
513
514static void gma_set_subsystem(device_t dev, unsigned vendor, unsigned device)
515{
516 if (!vendor || !device) {
517 pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
518 pci_read_config32(dev, PCI_VENDOR_ID));
519 } else {
520 pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
521 ((device & 0xffff) << 16) | (vendor & 0xffff));
522 }
523}
524
525static struct pci_operations gma_pci_ops = {
526 .set_subsystem = gma_set_subsystem,
527};
528
529static struct device_operations gma_func0_ops = {
530 .read_resources = pci_dev_read_resources,
531 .set_resources = pci_dev_set_resources,
532 .enable_resources = pci_dev_enable_resources,
533 .init = gma_func0_init,
534 .scan_bus = 0,
535 .enable = 0,
536 .ops_pci = &gma_pci_ops,
537};
538
539static const struct pci_driver gma_gt1_desktop __pci_driver = {
540 .ops = &gma_func0_ops,
541 .vendor = PCI_VENDOR_ID_INTEL,
542 .device = 0x0102,
543};
544
545static const struct pci_driver gma_gt1_mobile __pci_driver = {
546 .ops = &gma_func0_ops,
547 .vendor = PCI_VENDOR_ID_INTEL,
548 .device = 0x0106,
549};
550
551static const struct pci_driver gma_gt1_server __pci_driver = {
552 .ops = &gma_func0_ops,
553 .vendor = PCI_VENDOR_ID_INTEL,
554 .device = 0x010a,
555};
556
557static const struct pci_driver gma_gt2_desktop __pci_driver = {
558 .ops = &gma_func0_ops,
559 .vendor = PCI_VENDOR_ID_INTEL,
560 .device = 0x0112,
561};
562
563static const struct pci_driver gma_gt2_mobile __pci_driver = {
564 .ops = &gma_func0_ops,
565 .vendor = PCI_VENDOR_ID_INTEL,
566 .device = 0x0116,
567};
568
569static const struct pci_driver gma_gt2_desktop_fast __pci_driver = {
570 .ops = &gma_func0_ops,
571 .vendor = PCI_VENDOR_ID_INTEL,
572 .device = 0x0122,
573};
574
575static const struct pci_driver gma_gt2_mobile_fast __pci_driver = {
576 .ops = &gma_func0_ops,
577 .vendor = PCI_VENDOR_ID_INTEL,
578 .device = 0x0126,
579};
580
581static const struct pci_driver gma_func0_driver_3 __pci_driver = {
582 .ops = &gma_func0_ops,
583 .vendor = PCI_VENDOR_ID_INTEL,
584 .device = 0x0166,
585};