ref: f5e3f835dfc86a3c699b2b534314a8cc730255d4
parent: d013e50dc5a23087295231c435010d99d163e7a6
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jan 11 21:04:13 EST 2015
igfx: aaand vga support for x200s :-)
--- a/sys/src/cmd/aux/vga/igfx.c
+++ b/sys/src/cmd/aux/vga/igfx.c
@@ -779,6 +779,19 @@
else
x = (igfx->adpa.v >> 30) & 1;
igfx->adpa.v |= (1<<31);
+ if(igfx->type == TypeG45){+ igfx->adpa.v &= ~(3<<10); /* Monitor DPMS */
+
+ igfx->adpa.v &= ~(1<<15); /* ADPA Polarity Select */
+ if(m->vsync == '+')
+ igfx->adpa.v |= 1<<4;
+ else if(m->vsync == '-')
+ igfx->adpa.v &= ~(1<<14);
+ if(m->hsync == '+')
+ igfx->adpa.v |= 1<<3;
+ else if(m->hsync == '-')
+ igfx->adpa.v &= ~(1<<3);
+ }
}
p = &igfx->pipe[x];
--
⑨