xref: /OK3568_Linux_fs/external/xserver/debian/patches/06_use-intel-only-on-pre-gen4.diff (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Description: Use intel ddx only on pre-gen4 hw, newer ones will fall back to modesetting
2Author: Timo Aaltonen <tjaalton@debian.org>
3
4--- a/hw/xfree86/common/xf86pciBus.c
5+++ b/hw/xfree86/common/xf86pciBus.c
6@@ -1174,7 +1174,23 @@ xf86VideoPtrToDriverList(struct pci_devi
7 		case 0x0bef:
8 			/* Use fbdev/vesa driver on Oaktrail, Medfield, CDV */
9 			break;
10-		default:
11+		/* Default to intel only on pre-gen4 chips */
12+		case 0x3577:
13+		case 0x2562:
14+		case 0x3582:
15+		case 0x358e:
16+		case 0x2572:
17+		case 0x2582:
18+		case 0x258a:
19+		case 0x2592:
20+		case 0x2772:
21+		case 0x27a2:
22+		case 0x27ae:
23+		case 0x29b2:
24+		case 0x29c2:
25+		case 0x29d2:
26+		case 0xa001:
27+		case 0xa011:
28 			driverList[0] = "intel";
29 			break;
30         }
31