shithub: riscv

Download patch

ref: ce69208641e7d1f84336ba3468899ba8d5f68112
parent: 90c1959fc4b0d05a81920edf9caf21f1280305d6
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jan 11 22:09:58 EST 2015

igfx: support for X200 (thanks bigato)

--- a/lib/vgadb
+++ b/lib/vgadb
@@ -436,6 +436,7 @@
 
 ctlr
 	vid=0x8086 did=0x0166	# X230
+	vid=0x8086 did=0x2a43	# X200
 	vid=0x8086 did=0x2a42	# X200s
 	link=vga
 	hwgc=igfxhwgc
@@ -1699,14 +1700,17 @@
 	lcd=1
 
 #
-# Lenovo X200s (LCD) LVDS
+# Lenovo X200 (LCD) LVDS
 #
-x200s=1280x800		# 60Hz
+x200=1280x800		# 60Hz
 	clock=75
 	shb=1296 ehb=1344 ht=1512
 	vrs=802 vre=804 vt=830
 	hsync=- vsync=-
 	lcd=1
+
+x200s
+	alias=x200
 
 #
 # LG Flatron L1730P
--- a/sys/src/9/pc/vgaigfx.c
+++ b/sys/src/9/pc/vgaigfx.c
@@ -84,7 +84,10 @@
 	/* check PIPExCONF if enabled */
 	if((scr->mmio[(0x70008 | o)/4] & (1<<31)) == 0)
 		return nil;
-	if(scr->pci->did == 0x2a42){	/* G45 */
+	switch(scr->pci->did){
+	case 0x2a42:	/* X200 */
+	case 0x2a43:	/* X200s */
+		/* G45 */
 		if(pipe > 1)
 			return nil;
 		o = pipe*0x40;
--- a/sys/src/cmd/aux/vga/igfx.c
+++ b/sys/src/cmd/aux/vga/igfx.c
@@ -305,6 +305,7 @@
 	case 0x0166:	/* X230 */
 		return TypeIVB;
 
+	case 0x2a43:	/* X200 */
 	case 0x2a42:	/* X200s */
 		return TypeG45;
 	}